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.NativeResource
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 Description static class
CLBusAddressAMD.Buffer
An array ofCLBusAddressAMD
structs.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CLBusAddressAMD(java.nio.ByteBuffer container)
Creates aCLBusAddressAMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLBusAddressAMD
calloc()
Returns a newCLBusAddressAMD
instance allocated withmemCalloc
.static CLBusAddressAMD.Buffer
calloc(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated withmemCalloc
.static CLBusAddressAMD
callocStack()
Returns a newCLBusAddressAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD.Buffer
callocStack(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newCLBusAddressAMD
instance allocated on the thread-localMemoryStack
.static CLBusAddressAMD.Buffer
mallocStack(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the thread-localMemoryStack
.static CLBusAddressAMD.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLBusAddressAMD
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.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
.CLBusAddressAMD
set(long surfbusaddress, long signalbusaddress)
Initializes this struct with the specified values.CLBusAddressAMD
set(CLBusAddressAMD src)
Copies the specified struct data to this struct.long
signalbusaddress()
Returns the value of thesignalbusaddress
field.CLBusAddressAMD
signalbusaddress(long value)
Sets the specified value to thesignalbusaddress
field.int
sizeof()
long
surfbusaddress()
Returns the value of thesurfbusaddress
field.CLBusAddressAMD
surfbusaddress(long value)
Sets the specified value to thesurfbusaddress
field.
-
-
-
Constructor Detail
-
CLBusAddressAMD
public CLBusAddressAMD(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
surfbusaddress
public long surfbusaddress()
Returns the value of thesurfbusaddress
field.
-
signalbusaddress
public long signalbusaddress()
Returns the value of thesignalbusaddress
field.
-
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 newCLBusAddressAMD
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CLBusAddressAMD calloc()
Returns a newCLBusAddressAMD
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CLBusAddressAMD create()
Returns a newCLBusAddressAMD
instance allocated withBufferUtils
.
-
create
public static CLBusAddressAMD create(long address)
Returns a newCLBusAddressAMD
instance for the specified memory address.
-
createSafe
@Nullable public static CLBusAddressAMD createSafe(long address)
-
malloc
public static CLBusAddressAMD.Buffer malloc(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CLBusAddressAMD.Buffer calloc(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CLBusAddressAMD.Buffer create(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CLBusAddressAMD.Buffer create(long address, int capacity)
Create aCLBusAddressAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CLBusAddressAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CLBusAddressAMD mallocStack()
Returns a newCLBusAddressAMD
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CLBusAddressAMD callocStack()
Returns a newCLBusAddressAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CLBusAddressAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLBusAddressAMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CLBusAddressAMD.Buffer callocStack(int capacity)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CLBusAddressAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CLBusAddressAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-