Package org.lwjgl.cuda
Class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSemaphore signal node parameters.Layout
struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS { CUexternalSemaphore *extSemArray();CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSconst *paramsArray(); unsigned intnumExtSems(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.BufferAn array ofCUDA_EXT_SEM_SIGNAL_NODE_PARAMSstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTSEMARRAY
NUMEXTSEMS
PARAMSARRAYThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(java.nio.ByteBuffer container)Creates aCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CUDA_EXT_SEM_SIGNAL_NODE_PARAMScalloc()Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withmemCalloc.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffercalloc(int capacity)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withmemCalloc.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMScalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMScreate()Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withBufferUtils.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffercreate(int capacity)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withBufferUtils.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMScreate(long address)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance for the specified memory address.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffercreate(long address, int capacity)Create aCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance at the specified memory.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMScreateSafe(long address)static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.BuffercreateSafe(long address, int capacity)org.lwjgl.PointerBufferextSemArray()array of external semaphore handlesCUDA_EXT_SEM_SIGNAL_NODE_PARAMSextSemArray(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theextSemArray()field.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMSmalloc()Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withmemAlloc.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffermalloc(int capacity)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withmemAlloc.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_EXT_SEM_SIGNAL_NODE_PARAMSmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated on the specifiedMemoryStack.static org.lwjgl.PointerBuffernextSemArray(long struct)Unsafe version ofextSemArray.static voidnextSemArray(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofextSemArray.static intnnumExtSems(long struct)Unsafe version ofnumExtSems().static voidnnumExtSems(long struct, int value)Sets the specified value to thenumExtSemsfield of the specifiedstruct.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffernparamsArray(long struct)Unsafe version ofparamsArray().static voidnparamsArray(long struct, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer value)Unsafe version ofparamsArray.intnumExtSems()number of handles and parameters supplied in extSemArray and paramsArrayCUDA_EXT_SEM_SIGNAL_NODE_PARAMSnumExtSems(int value)Sets the specified value to thenumExtSems()field.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BufferparamsArray()array of external semaphore signal parametersCUDA_EXT_SEM_SIGNAL_NODE_PARAMSparamsArray(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer value)Sets the address of the specifiedCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferto theparamsArray()field.CUDA_EXT_SEM_SIGNAL_NODE_PARAMSset(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS src)Copies the specified struct data to this struct.CUDA_EXT_SEM_SIGNAL_NODE_PARAMSset(org.lwjgl.PointerBuffer extSemArray, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer paramsArray, int numExtSems)Initializes this struct with the specified values.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(java.nio.ByteBuffer container)
Creates aCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance 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
-
extSemArray
public org.lwjgl.PointerBuffer extSemArray()
array of external semaphore handles
-
paramsArray
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer paramsArray()
array of external semaphore signal parameters
-
numExtSems
public int numExtSems()
number of handles and parameters supplied in extSemArray and paramsArray
-
extSemArray
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS extSemArray(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theextSemArray()field.
-
paramsArray
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS paramsArray(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer value)
Sets the address of the specifiedCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferto theparamsArray()field.
-
numExtSems
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS numExtSems(int value)
Sets the specified value to thenumExtSems()field.
-
set
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS set(org.lwjgl.PointerBuffer extSemArray, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer paramsArray, int numExtSems)
Initializes this struct with the specified values.
-
set
public CUDA_EXT_SEM_SIGNAL_NODE_PARAMS set(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS malloc()
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS calloc()
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS create()
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated withBufferUtils.
-
create
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS create(long address)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS createSafe(long address)
-
malloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer malloc(int capacity)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer calloc(int capacity)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer create(int capacity)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer create(long address, int capacity)
Create aCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer createSafe(long address, int capacity)
-
malloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXT_SEM_SIGNAL_NODE_PARAMS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nextSemArray
public static org.lwjgl.PointerBuffer nextSemArray(long struct)
Unsafe version ofextSemArray.
-
nparamsArray
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer nparamsArray(long struct)
Unsafe version ofparamsArray().
-
nnumExtSems
public static int nnumExtSems(long struct)
Unsafe version ofnumExtSems().
-
nextSemArray
public static void nextSemArray(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofextSemArray.
-
nparamsArray
public static void nparamsArray(long struct, CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer value)Unsafe version ofparamsArray.
-
nnumExtSems
public static void nnumExtSems(long struct, int value)Sets the specified value to thenumExtSemsfield of the specifiedstruct.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-