public class CLBusAddressAMD
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
EnqueueMakeBuffersResidentAMD.
surfbusaddress – contains the page aligned physical starting address of the backing store preallocated by the application on a remote devicesignalbusaddress – contains the page aligned physical starting address of preallocated signaling surface
struct cl_bus_address_amd {
cl_long surfbusaddress;
cl_long signalbusaddress;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CLBusAddressAMD.Buffer
An array of
CLBusAddressAMD structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIGNALBUSADDRESS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SURFBUSADDRESS
The struct member offsets.
|
| Constructor and Description |
|---|
CLBusAddressAMD(java.nio.ByteBuffer container)
Creates a
CLBusAddressAMD instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CLBusAddressAMD |
calloc()
Returns a new
CLBusAddressAMD instance allocated with memCalloc. |
static CLBusAddressAMD.Buffer |
calloc(int capacity)
Returns a new
CLBusAddressAMD.Buffer instance allocated with memCalloc. |
static CLBusAddressAMD |
callocStack()
Returns a new
CLBusAddressAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLBusAddressAMD.Buffer |
callocStack(int capacity)
Returns a new
CLBusAddressAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLBusAddressAMD.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLBusAddressAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLBusAddressAMD |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLBusAddressAMD instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLBusAddressAMD |
create()
Returns a new
CLBusAddressAMD instance allocated with BufferUtils. |
static CLBusAddressAMD.Buffer |
create(int capacity)
Returns a new
CLBusAddressAMD.Buffer instance allocated with BufferUtils. |
static CLBusAddressAMD |
create(long address)
Returns a new
CLBusAddressAMD instance for the specified memory address. |
static CLBusAddressAMD.Buffer |
create(long address,
int capacity)
Create a
CLBusAddressAMD.Buffer instance at the specified memory. |
static CLBusAddressAMD |
createSafe(long address)
|
static CLBusAddressAMD.Buffer |
createSafe(long address,
int capacity)
|
static CLBusAddressAMD |
malloc()
Returns a new
CLBusAddressAMD instance allocated with memAlloc. |
static CLBusAddressAMD.Buffer |
malloc(int capacity)
Returns a new
CLBusAddressAMD.Buffer instance allocated with memAlloc. |
static CLBusAddressAMD |
mallocStack()
Returns a new
CLBusAddressAMD instance allocated on the thread-local MemoryStack. |
static CLBusAddressAMD.Buffer |
mallocStack(int capacity)
Returns a new
CLBusAddressAMD.Buffer instance allocated on the thread-local MemoryStack. |
static CLBusAddressAMD.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLBusAddressAMD.Buffer instance allocated on the specified MemoryStack. |
static CLBusAddressAMD |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLBusAddressAMD instance allocated on the specified MemoryStack. |
static long |
nsignalbusaddress(long struct)
Unsafe version of
signalbusaddress(). |
static void |
nsignalbusaddress(long struct,
long value)
Unsafe version of
signalbusaddress. |
static long |
nsurfbusaddress(long struct)
Unsafe version of
surfbusaddress(). |
static void |
nsurfbusaddress(long struct,
long value)
Unsafe version of
surfbusaddress. |
CLBusAddressAMD |
set(CLBusAddressAMD src)
Copies the specified struct data to this struct.
|
CLBusAddressAMD |
set(long surfbusaddress,
long signalbusaddress)
Initializes this struct with the specified values.
|
long |
signalbusaddress()
Returns the value of the
signalbusaddress field. |
CLBusAddressAMD |
signalbusaddress(long value)
Sets the specified value to the
signalbusaddress field. |
int |
sizeof() |
long |
surfbusaddress()
Returns the value of the
surfbusaddress field. |
CLBusAddressAMD |
surfbusaddress(long value)
Sets the specified value to the
surfbusaddress field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SURFBUSADDRESS
public static final int SIGNALBUSADDRESS
public CLBusAddressAMD(java.nio.ByteBuffer container)
CLBusAddressAMD 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 long surfbusaddress()
surfbusaddress field.public long signalbusaddress()
signalbusaddress field.public CLBusAddressAMD surfbusaddress(long value)
surfbusaddress field.public CLBusAddressAMD signalbusaddress(long value)
signalbusaddress field.public CLBusAddressAMD set(long surfbusaddress, long signalbusaddress)
public CLBusAddressAMD set(CLBusAddressAMD src)
src - the source structpublic static CLBusAddressAMD malloc()
CLBusAddressAMD instance allocated with memAlloc. The instance must be explicitly freed.public static CLBusAddressAMD calloc()
CLBusAddressAMD instance allocated with memCalloc. The instance must be explicitly freed.public static CLBusAddressAMD create()
CLBusAddressAMD instance allocated with BufferUtils.public static CLBusAddressAMD create(long address)
CLBusAddressAMD instance for the specified memory address.@Nullable public static CLBusAddressAMD createSafe(long address)
public static CLBusAddressAMD.Buffer malloc(int capacity)
CLBusAddressAMD.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLBusAddressAMD.Buffer calloc(int capacity)
CLBusAddressAMD.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLBusAddressAMD.Buffer create(int capacity)
CLBusAddressAMD.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CLBusAddressAMD.Buffer create(long address, int capacity)
CLBusAddressAMD.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CLBusAddressAMD.Buffer createSafe(long address, int capacity)
public static CLBusAddressAMD mallocStack()
CLBusAddressAMD instance allocated on the thread-local MemoryStack.public static CLBusAddressAMD callocStack()
CLBusAddressAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CLBusAddressAMD mallocStack(org.lwjgl.system.MemoryStack stack)
CLBusAddressAMD instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CLBusAddressAMD callocStack(org.lwjgl.system.MemoryStack stack)
CLBusAddressAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CLBusAddressAMD.Buffer mallocStack(int capacity)
CLBusAddressAMD.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CLBusAddressAMD.Buffer callocStack(int capacity)
CLBusAddressAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CLBusAddressAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLBusAddressAMD.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CLBusAddressAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLBusAddressAMD.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 long nsurfbusaddress(long struct)
surfbusaddress().public static long nsignalbusaddress(long struct)
signalbusaddress().public static void nsurfbusaddress(long struct,
long value)
surfbusaddress.public static void nsignalbusaddress(long struct,
long value)
signalbusaddress.Copyright LWJGL. All Rights Reserved. License terms.