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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CLBusAddressAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBus address information used inEnqueueMakeBuffersResidentAMD.Layout
struct cl_bus_address_amd { cl_longsurfbusaddress(); cl_longsignalbusaddress(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCLBusAddressAMD.BufferAn array ofCLBusAddressAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIGNALBUSADDRESSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSURFBUSADDRESSThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 Deprecated Methods Modifier and Type Method Description static CLBusAddressAMDcalloc()Returns a newCLBusAddressAMDinstance allocated withmemCalloc.static CLBusAddressAMD.Buffercalloc(int capacity)Returns a newCLBusAddressAMD.Bufferinstance allocated withmemCalloc.static CLBusAddressAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLBusAddressAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLBusAddressAMDcallocStack()Deprecated.static CLBusAddressAMD.BuffercallocStack(int capacity)Deprecated.static CLBusAddressAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CLBusAddressAMDcallocStack(org.lwjgl.system.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 CLBusAddressAMDcreateSafe(long address)static 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, org.lwjgl.system.MemoryStack stack)Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLBusAddressAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.static CLBusAddressAMDmallocStack()Deprecated.static CLBusAddressAMD.BuffermallocStack(int capacity)Deprecated.static CLBusAddressAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CLBusAddressAMDmallocStack(org.lwjgl.system.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.CLBusAddressAMDset(long surfbusaddress, long signalbusaddress)Initializes this struct with the specified values.CLBusAddressAMDset(CLBusAddressAMD src)Copies the specified struct data to this struct.longsignalbusaddress()contains the page aligned physical starting address of preallocated signaling surfaceCLBusAddressAMDsignalbusaddress(long value)Sets the specified value to thesignalbusaddress()field.intsizeof()longsurfbusaddress()contains the page aligned physical starting address of the backing store preallocated by the application on a remote deviceCLBusAddressAMDsurfbusaddress(long value)Sets the specified value to thesurfbusaddress()field.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public CLBusAddressAMD surfbusaddress(long value)
Sets the specified value to thesurfbusaddress()field.
-
signalbusaddress
public CLBusAddressAMD signalbusaddress(long value)
Sets the specified value to thesignalbusaddress()field.
-
set
public CLBusAddressAMD set(long surfbusaddress, long signalbusaddress)
Initializes this struct with the specified values.
-
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.
-
createSafe
@Nullable public static CLBusAddressAMD createSafe(long address)
-
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
-
createSafe
@Nullable public static CLBusAddressAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CLBusAddressAMD mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CLBusAddressAMD callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CLBusAddressAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CLBusAddressAMD callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CLBusAddressAMD.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CLBusAddressAMD.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CLBusAddressAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CLBusAddressAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CLBusAddressAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CLBusAddressAMD calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CLBusAddressAMD.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CLBusAddressAMD.Buffer calloc(int capacity, org.lwjgl.system.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
-
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.
-
-