Package org.lwjgl.opencl
Class CLBusAddressAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.CLBusAddressAMD
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class CLBusAddressAMD extends Struct
Bus address information used inEnqueueMakeBuffersResidentAMD.Member documentation
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
Layout
struct cl_bus_address_amd { cl_long surfbusaddress; cl_long signalbusaddress; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classCLBusAddressAMD.BufferAn array ofCLBusAddressAMDstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description CLBusAddressAMD(java.nio.ByteBuffer container)Creates aCLBusAddressAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static CLBusAddressAMDcalloc()Returns a newCLBusAddressAMDinstance allocated withmemCalloc.static CLBusAddressAMD.Buffercalloc(int capacity)Returns a newCLBusAddressAMD.Bufferinstance allocated withmemCalloc.static CLBusAddressAMDcallocStack()Returns a newCLBusAddressAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLBusAddressAMD.BuffercallocStack(int capacity)Returns a newCLBusAddressAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLBusAddressAMD.BuffercallocStack(int capacity, MemoryStack stack)Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLBusAddressAMDcallocStack(MemoryStack stack)Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static CLBusAddressAMD.Buffercreate(long address, int capacity)Create aCLBusAddressAMD.Bufferinstance at the specified memory.static CLBusAddressAMDmalloc()Returns a newCLBusAddressAMDinstance allocated withmemAlloc.static CLBusAddressAMD.Buffermalloc(int capacity)Returns a newCLBusAddressAMD.Bufferinstance allocated withmemAlloc.static CLBusAddressAMDmallocStack()Returns a newCLBusAddressAMDinstance allocated on the thread-localMemoryStack.static CLBusAddressAMD.BuffermallocStack(int capacity)Returns a newCLBusAddressAMD.Bufferinstance allocated on the thread-localMemoryStack.static CLBusAddressAMD.BuffermallocStack(int capacity, MemoryStack stack)Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLBusAddressAMDmallocStack(MemoryStack stack)Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.CLBusAddressAMDnset(long struct)Unsafe version ofset.CLBusAddressAMDset(CLBusAddressAMD src)Copies the specified struct data to this struct.CLBusAddressAMDset(long surfbusaddress, long signalbusaddress)Initializes this struct with the specified values.longsignalbusaddress()Returns the value of thesignalbusaddressfield.CLBusAddressAMDsignalbusaddress(long value)Sets the specified value to thesignalbusaddressfield.intsizeof()Returns thesizeof(struct).longsurfbusaddress()Returns the value of thesurfbusaddressfield.CLBusAddressAMDsurfbusaddress(long value)Sets the specified value to thesurfbusaddressfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
CLBusAddressAMD
public CLBusAddressAMD(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
surfbusaddress
public long surfbusaddress()
Returns the value of thesurfbusaddressfield.
-
signalbusaddress
public long signalbusaddress()
Returns the value of thesignalbusaddressfield.
-
surfbusaddress
public CLBusAddressAMD surfbusaddress(long value)
Sets the specified value to thesurfbusaddressfield.
-
signalbusaddress
public CLBusAddressAMD signalbusaddress(long value)
Sets the specified value to thesignalbusaddressfield.
-
set
public CLBusAddressAMD set(long surfbusaddress, long signalbusaddress)
Initializes this struct with the specified values.
-
nset
public CLBusAddressAMD nset(long struct)
Unsafe version ofset.
-
set
public CLBusAddressAMD set(CLBusAddressAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CLBusAddressAMD malloc()
Returns a newCLBusAddressAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLBusAddressAMD calloc()
Returns a newCLBusAddressAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLBusAddressAMD create()
Returns a newCLBusAddressAMDinstance allocated withBufferUtils.
-
create
public static CLBusAddressAMD create(long address)
Returns a newCLBusAddressAMDinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static CLBusAddressAMD.Buffer malloc(int capacity)
Returns a newCLBusAddressAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLBusAddressAMD.Buffer calloc(int capacity)
Returns a newCLBusAddressAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLBusAddressAMD.Buffer create(int capacity)
Returns a newCLBusAddressAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLBusAddressAMD.Buffer create(long address, int capacity)
Create aCLBusAddressAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static CLBusAddressAMD mallocStack()
Returns a newCLBusAddressAMDinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CLBusAddressAMD callocStack()
Returns a newCLBusAddressAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CLBusAddressAMD mallocStack(MemoryStack stack)
Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CLBusAddressAMD callocStack(MemoryStack stack)
Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static CLBusAddressAMD.Buffer mallocStack(int capacity)
Returns a newCLBusAddressAMD.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CLBusAddressAMD.Buffer callocStack(int capacity)
Returns a newCLBusAddressAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static CLBusAddressAMD.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static CLBusAddressAMD.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-