Package org.lwjgl.opencl
Class CLBusAddressAMD
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Bus address information used in
EnqueueMakeBuffersResidentAMD
.
Layout
struct cl_bus_address_amd {
cl_long surfbusaddress()
;
cl_long signalbusaddress()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCLBusAddressAMD
(ByteBuffer container) Creates aCLBusAddressAMD
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLBusAddressAMD
calloc()
Returns a newCLBusAddressAMD
instance allocated withmemCalloc
.static CLBusAddressAMD.Buffer
calloc
(int capacity) Returns a newCLBusAddressAMD.Buffer
instance allocated withmemCalloc
.static CLBusAddressAMD.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD
calloc
(MemoryStack stack) Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD
Deprecated.static CLBusAddressAMD.Buffer
callocStack
(int capacity) Deprecated.static CLBusAddressAMD.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CLBusAddressAMD
callocStack
(MemoryStack stack) Deprecated.static CLBusAddressAMD
create()
Returns a newCLBusAddressAMD
instance allocated withBufferUtils
.static CLBusAddressAMD.Buffer
create
(int capacity) Returns a newCLBusAddressAMD.Buffer
instance allocated withBufferUtils
.static CLBusAddressAMD
create
(long address) Returns a newCLBusAddressAMD
instance for the specified memory address.static CLBusAddressAMD.Buffer
create
(long address, int capacity) Create aCLBusAddressAMD.Buffer
instance at the specified memory.static CLBusAddressAMD
createSafe
(long address) static CLBusAddressAMD.Buffer
createSafe
(long address, int capacity) static CLBusAddressAMD
malloc()
Returns a newCLBusAddressAMD
instance allocated withmemAlloc
.static CLBusAddressAMD.Buffer
malloc
(int capacity) Returns a newCLBusAddressAMD.Buffer
instance allocated withmemAlloc
.static CLBusAddressAMD.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLBusAddressAMD
malloc
(MemoryStack stack) Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.static CLBusAddressAMD
Deprecated.static CLBusAddressAMD.Buffer
mallocStack
(int capacity) Deprecated.static CLBusAddressAMD.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CLBusAddressAMD
mallocStack
(MemoryStack stack) Deprecated.static long
nsignalbusaddress
(long struct) Unsafe version ofsignalbusaddress()
.static void
nsignalbusaddress
(long struct, long value) Unsafe version ofsignalbusaddress
.static long
nsurfbusaddress
(long struct) Unsafe version ofsurfbusaddress()
.static void
nsurfbusaddress
(long struct, long value) Unsafe version ofsurfbusaddress
.set
(long surfbusaddress, long signalbusaddress) Initializes this struct with the specified values.set
(CLBusAddressAMD src) Copies the specified struct data to this struct.long
contains the page aligned physical starting address of preallocated signaling surfacesignalbusaddress
(long value) Sets the specified value to thesignalbusaddress()
field.int
sizeof()
Returnssizeof(struct)
.long
contains the page aligned physical starting address of the backing store preallocated by the application on a remote devicesurfbusaddress
(long value) Sets the specified value to thesurfbusaddress()
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SURFBUSADDRESS
public static final int SURFBUSADDRESSThe struct member offsets. -
SIGNALBUSADDRESS
public static final int SIGNALBUSADDRESSThe struct member offsets.
-
-
Constructor Details
-
CLBusAddressAMD
Creates aCLBusAddressAMD
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CLBusAddressAMD>
-
surfbusaddress
public long surfbusaddress()contains the page aligned physical starting address of the backing store preallocated by the application on a remote device -
signalbusaddress
public long signalbusaddress()contains the page aligned physical starting address of preallocated signaling surface -
surfbusaddress
Sets the specified value to thesurfbusaddress()
field. -
signalbusaddress
Sets the specified value to thesignalbusaddress()
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newCLBusAddressAMD
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLBusAddressAMD
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLBusAddressAMD
instance allocated withBufferUtils
. -
create
Returns a newCLBusAddressAMD
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLBusAddressAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLBusAddressAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLBusAddressAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLBusAddressAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsurfbusaddress
public static long nsurfbusaddress(long struct) Unsafe version ofsurfbusaddress()
. -
nsignalbusaddress
public static long nsignalbusaddress(long struct) Unsafe version ofsignalbusaddress()
. -
nsurfbusaddress
public static void nsurfbusaddress(long struct, long value) Unsafe version ofsurfbusaddress
. -
nsignalbusaddress
public static void nsignalbusaddress(long struct, long value) Unsafe version ofsignalbusaddress
.
-