public class CLMemEXTHostPtr
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
host_ptr argument of CreateBuffer, CreateImage2D and CreateImage3D.
allocation_type – type of external memory allocation. Legal values will be defined in layered extensions.host_cache_policy – host cache policy for this external memory allocation
struct cl_mem_ext_host_ptr {
cl_uint allocation_type;
cl_uint host_cache_policy;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CLMemEXTHostPtr.Buffer
An array of
CLMemEXTHostPtr structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOCATION_TYPE
The struct member offsets.
|
static int |
HOST_CACHE_POLICY
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CLMemEXTHostPtr(java.nio.ByteBuffer container)
Creates a
CLMemEXTHostPtr instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
allocation_type()
Returns the value of the
allocation_type field. |
CLMemEXTHostPtr |
allocation_type(int value)
Sets the specified value to the
allocation_type field. |
static CLMemEXTHostPtr |
calloc()
Returns a new
CLMemEXTHostPtr instance allocated with memCalloc. |
static CLMemEXTHostPtr.Buffer |
calloc(int capacity)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated with memCalloc. |
static CLMemEXTHostPtr |
callocStack()
Returns a new
CLMemEXTHostPtr instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLMemEXTHostPtr.Buffer |
callocStack(int capacity)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLMemEXTHostPtr.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLMemEXTHostPtr |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLMemEXTHostPtr instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLMemEXTHostPtr |
create()
Returns a new
CLMemEXTHostPtr instance allocated with BufferUtils. |
static CLMemEXTHostPtr.Buffer |
create(int capacity)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated with BufferUtils. |
static CLMemEXTHostPtr |
create(long address)
Returns a new
CLMemEXTHostPtr instance for the specified memory address. |
static CLMemEXTHostPtr.Buffer |
create(long address,
int capacity)
Create a
CLMemEXTHostPtr.Buffer instance at the specified memory. |
static CLMemEXTHostPtr |
createSafe(long address)
|
static CLMemEXTHostPtr.Buffer |
createSafe(long address,
int capacity)
|
int |
host_cache_policy()
Returns the value of the
host_cache_policy field. |
CLMemEXTHostPtr |
host_cache_policy(int value)
Sets the specified value to the
host_cache_policy field. |
static CLMemEXTHostPtr |
malloc()
Returns a new
CLMemEXTHostPtr instance allocated with memAlloc. |
static CLMemEXTHostPtr.Buffer |
malloc(int capacity)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated with memAlloc. |
static CLMemEXTHostPtr |
mallocStack()
Returns a new
CLMemEXTHostPtr instance allocated on the thread-local MemoryStack. |
static CLMemEXTHostPtr.Buffer |
mallocStack(int capacity)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated on the thread-local MemoryStack. |
static CLMemEXTHostPtr.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLMemEXTHostPtr.Buffer instance allocated on the specified MemoryStack. |
static CLMemEXTHostPtr |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLMemEXTHostPtr instance allocated on the specified MemoryStack. |
static int |
nallocation_type(long struct)
Unsafe version of
allocation_type(). |
static void |
nallocation_type(long struct,
int value)
Unsafe version of
allocation_type. |
static int |
nhost_cache_policy(long struct)
Unsafe version of
host_cache_policy(). |
static void |
nhost_cache_policy(long struct,
int value)
Unsafe version of
host_cache_policy. |
CLMemEXTHostPtr |
set(CLMemEXTHostPtr src)
Copies the specified struct data to this struct.
|
CLMemEXTHostPtr |
set(int allocation_type,
int host_cache_policy)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ALLOCATION_TYPE
public static final int HOST_CACHE_POLICY
public CLMemEXTHostPtr(java.nio.ByteBuffer container)
CLMemEXTHostPtr instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int allocation_type()
allocation_type field.public int host_cache_policy()
host_cache_policy field.public CLMemEXTHostPtr allocation_type(int value)
allocation_type field.public CLMemEXTHostPtr host_cache_policy(int value)
host_cache_policy field.public CLMemEXTHostPtr set(int allocation_type, int host_cache_policy)
public CLMemEXTHostPtr set(CLMemEXTHostPtr src)
src - the source structpublic static CLMemEXTHostPtr malloc()
CLMemEXTHostPtr instance allocated with memAlloc. The instance must be explicitly freed.public static CLMemEXTHostPtr calloc()
CLMemEXTHostPtr instance allocated with memCalloc. The instance must be explicitly freed.public static CLMemEXTHostPtr create()
CLMemEXTHostPtr instance allocated with BufferUtils.public static CLMemEXTHostPtr create(long address)
CLMemEXTHostPtr instance for the specified memory address.@Nullable public static CLMemEXTHostPtr createSafe(long address)
public static CLMemEXTHostPtr.Buffer malloc(int capacity)
CLMemEXTHostPtr.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer calloc(int capacity)
CLMemEXTHostPtr.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer create(int capacity)
CLMemEXTHostPtr.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer create(long address, int capacity)
CLMemEXTHostPtr.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CLMemEXTHostPtr.Buffer createSafe(long address, int capacity)
public static CLMemEXTHostPtr mallocStack()
CLMemEXTHostPtr instance allocated on the thread-local MemoryStack.public static CLMemEXTHostPtr callocStack()
CLMemEXTHostPtr instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CLMemEXTHostPtr mallocStack(org.lwjgl.system.MemoryStack stack)
CLMemEXTHostPtr instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CLMemEXTHostPtr callocStack(org.lwjgl.system.MemoryStack stack)
CLMemEXTHostPtr instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CLMemEXTHostPtr.Buffer mallocStack(int capacity)
CLMemEXTHostPtr.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer callocStack(int capacity)
CLMemEXTHostPtr.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLMemEXTHostPtr.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CLMemEXTHostPtr.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLMemEXTHostPtr.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nallocation_type(long struct)
allocation_type().public static int nhost_cache_policy(long struct)
host_cache_policy().public static void nallocation_type(long struct,
int value)
allocation_type.public static void nhost_cache_policy(long struct,
int value)
host_cache_policy.Copyright LWJGL. All Rights Reserved. License terms.