Package org.lwjgl.opencl
Class CLBusAddressAMD
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct cl_bus_address_amd {
cl_long surfbusaddress;
cl_long signalbusaddress;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCLBusAddressAMD(ByteBuffer container) Creates aCLBusAddressAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLBusAddressAMDcalloc()Returns a newCLBusAddressAMDinstance allocated withmemCalloc.static CLBusAddressAMD.Buffercalloc(int capacity) Returns a newCLBusAddressAMD.Bufferinstance allocated withmemCalloc.static CLBusAddressAMD.Buffercalloc(int capacity, MemoryStack stack) Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLBusAddressAMDcalloc(MemoryStack stack) Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLBusAddressAMDDeprecated.static CLBusAddressAMD.BuffercallocStack(int capacity) Deprecated.static CLBusAddressAMD.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static CLBusAddressAMDcallocStack(MemoryStack stack) Deprecated.static CLBusAddressAMDcreate()Returns a newCLBusAddressAMDinstance allocated withBufferUtils.static CLBusAddressAMD.Buffercreate(int capacity) Returns a newCLBusAddressAMD.Bufferinstance allocated withBufferUtils.static CLBusAddressAMDcreate(long address) Returns a newCLBusAddressAMDinstance for the specified memory address.static CLBusAddressAMD.Buffercreate(long address, int capacity) Create aCLBusAddressAMD.Bufferinstance at the specified memory.static @Nullable CLBusAddressAMDcreateSafe(long address) static @Nullable CLBusAddressAMD.BuffercreateSafe(long address, int capacity) static CLBusAddressAMDmalloc()Returns a newCLBusAddressAMDinstance allocated withmemAlloc.static CLBusAddressAMD.Buffermalloc(int capacity) Returns a newCLBusAddressAMD.Bufferinstance allocated withmemAlloc.static CLBusAddressAMD.Buffermalloc(int capacity, MemoryStack stack) Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLBusAddressAMDmalloc(MemoryStack stack) Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.static CLBusAddressAMDDeprecated.static CLBusAddressAMD.BuffermallocStack(int capacity) Deprecated.static CLBusAddressAMD.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static CLBusAddressAMDmallocStack(MemoryStack stack) Deprecated.static longnsignalbusaddress(long struct) Unsafe version ofsignalbusaddress().static voidnsignalbusaddress(long struct, long value) Unsafe version ofsignalbusaddress.static longnsurfbusaddress(long struct) Unsafe version ofsurfbusaddress().static voidnsurfbusaddress(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.longsignalbusaddress(long value) Sets the specified value to thesignalbusaddressfield.intsizeof()Returnssizeof(struct).longsurfbusaddress(long value) Sets the specified value to thesurfbusaddressfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aCLBusAddressAMDinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CLBusAddressAMD>
-
surfbusaddress
public long surfbusaddress()- Returns:
- the value of the
surfbusaddressfield.
-
signalbusaddress
public long signalbusaddress()- Returns:
- the value of the
signalbusaddressfield.
-
surfbusaddress
Sets the specified value to thesurfbusaddressfield. -
signalbusaddress
Sets the specified value to thesignalbusaddressfield. -
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 newCLBusAddressAMDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLBusAddressAMDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLBusAddressAMDinstance allocated withBufferUtils. -
create
Returns a newCLBusAddressAMDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLBusAddressAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLBusAddressAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLBusAddressAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLBusAddressAMD.Bufferinstance 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 newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStackand 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.
-