host_ptr argument of CreateBuffer, CreateImage2D and CreateImage3D.
struct cl_mem_ext_host_ptr {
cl_uint allocation_type;
cl_uint host_cache_policy;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | CLMemEXTHostPtr.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALLOCATION_TYPE
The struct member offsets. |
| public static final int | HOST_CACHE_POLICY
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | CLMemEXTHostPtr(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | calloc(int
the buffer capacity capacity)Returns a new |
| public static CLMemEXTHostPtr | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CLMemEXTHostPtr. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | |
| public static CLMemEXTHostPtr. | |
| protected CLMemEXTHostPtr | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | create(int
the buffer capacity capacity)Returns a new |
| public static CLMemEXTHostPtr. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | |
| public int | |
| public CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | malloc(int
the buffer capacity capacity)Returns a new |
| public static CLMemEXTHostPtr | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CLMemEXTHostPtr. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr | |
| public static CLMemEXTHostPtr. | |
| public static CLMemEXTHostPtr. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public CLMemEXTHostPtr | |
| public CLMemEXTHostPtr | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ALLOCATION_TYPE | back to summary |
|---|---|
| public static final int ALLOCATION_TYPE The struct member offsets. | |
| HOST_CACHE_POLICY | back to summary |
|---|---|
| public static final int HOST_CACHE_POLICY The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| CLMemEXTHostPtr | back to summary |
|---|---|
| protected CLMemEXTHostPtr(long address, ByteBuffer container) | |
| CLMemEXTHostPtr | back to summary |
|---|---|
| public CLMemEXTHostPtr(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| allocation_type | back to summary |
|---|---|
| public int allocation_type() type of external memory allocation. Legal values will be defined in layered extensions.
| |
| allocation_type | back to summary |
|---|---|
| public CLMemEXTHostPtr allocation_type(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected CLMemEXTHostPtr create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static CLMemEXTHostPtr create() Returns a new | |
| create | back to summary |
|---|---|
| public static CLMemEXTHostPtr create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Returns a new
| |
| create | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Create a
| |
| createSafe | back to summary |
|---|---|
| public static CLMemEXTHostPtr createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Like
| |
| host_cache_policy | back to summary |
|---|---|
| public int host_cache_policy() host cache policy for this external memory allocation
| |
| host_cache_policy | back to summary |
|---|---|
| public CLMemEXTHostPtr host_cache_policy(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static CLMemEXTHostPtr. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nallocation_type | back to summary |
|---|---|
| public static int nallocation_type(long struct) Unsafe version of | |
| nallocation_type | back to summary |
|---|---|
| public static void nallocation_type(long struct, int value) Unsafe version of | |
| nhost_cache_policy | back to summary |
|---|---|
| public static int nhost_cache_policy(long struct) Unsafe version of | |
| nhost_cache_policy | back to summary |
|---|---|
| public static void nhost_cache_policy(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public CLMemEXTHostPtr set(int allocation_type, int host_cache_policy) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public CLMemEXTHostPtr set(CLMemEXTHostPtr src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
CLMemEXTHostPtr structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final CLMemEXTHostPtr |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public CLMemEXTHostPtr. | |
| protected CLMemEXTHostPtr | |
| public int | |
| public CLMemEXTHostPtr. | host_cache_policy(int value)
Sets the specified value to the |
| protected CLMemEXTHostPtr. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final CLMemEXTHostPtr ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| allocation_type | back to summary |
|---|---|
public int allocation_type()
| |
| allocation_type | back to summary |
|---|---|
| public CLMemEXTHostPtr. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected CLMemEXTHostPtr getElementFactory() Implements abstract org.
| |
| host_cache_policy | back to summary |
|---|---|
public int host_cache_policy()
| |
| host_cache_policy | back to summary |
|---|---|
| public CLMemEXTHostPtr. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected CLMemEXTHostPtr. Implements abstract org.
| |