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 class
CLBusAddressAMD.Buffer
An array ofCLBusAddressAMD
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aCLBusAddressAMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and 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, MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLBusAddressAMD
callocStack(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 ornull
if the address isNULL
.static CLBusAddressAMD.Buffer
create(long address, int capacity)
Create aCLBusAddressAMD.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newCLBusAddressAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLBusAddressAMD
mallocStack(MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.CLBusAddressAMD
nset(long struct)
Unsafe version ofset
.CLBusAddressAMD
set(CLBusAddressAMD src)
Copies the specified struct data to this struct.CLBusAddressAMD
set(long surfbusaddress, long signalbusaddress)
Initializes this struct with the specified values.long
signalbusaddress()
Returns the value of thesignalbusaddress
field.CLBusAddressAMD
signalbusaddress(long value)
Sets the specified value to thesignalbusaddress
field.int
sizeof()
Returns thesizeof(struct)
.long
surfbusaddress()
Returns the value of thesurfbusaddress
field.CLBusAddressAMD
surfbusaddress(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
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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.
-
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 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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newCLBusAddressAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLBusAddressAMD callocStack(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, 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, 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
-
-