Package org.lwjgl.cuda
Class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS>
org.lwjgl.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
extends org.lwjgl.system.Struct<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS>
implements org.lwjgl.system.NativeResource
Layout
struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS {
struct {
struct {
unsigned long long value;
} fence;
union {
void * fence;
unsigned long long reserved;
} nvSciSync;
struct {
unsigned long long key;
} keyedMutex;
unsigned int reserved[12];
} params;
unsigned int flags;
unsigned int reserved[16];
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(ByteBuffer container) Creates aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Deprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.create()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withBufferUtils.create(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withBufferUtils.create(long address) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance for the specified memory address.create(long address, int capacity) Create aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance at the specified memory.static @Nullable CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScreateSafe(long address) static @Nullable CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.malloc()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStack.Deprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnparams_fence_value(long struct) Unsafe version ofparams_fence_value().static voidnparams_fence_value(long struct, long value) Unsafe version ofparams_fence_value.static longnparams_keyedMutex_key(long struct) Unsafe version ofparams_keyedMutex_key().static voidnparams_keyedMutex_key(long struct, long value) Unsafe version ofparams_keyedMutex_key.static longnparams_nvSciSync_fence(long struct) Unsafe version ofparams_nvSciSync_fence().static voidnparams_nvSciSync_fence(long struct, long value) Unsafe version ofparams_nvSciSync_fence.static longnparams_nvSciSync_reserved(long struct) Unsafe version ofparams_nvSciSync_reserved().static voidnparams_nvSciSync_reserved(long struct, long value) Unsafe version ofparams_nvSciSync_reserved.static IntBuffernparams_reserved(long struct) Unsafe version ofparams_reserved().static intnparams_reserved(long struct, int index) Unsafe version ofparams_reserved.static voidnparams_reserved(long struct, int index, int value) Unsafe version ofparams_reserved.static voidnparams_reserved(long struct, IntBuffer value) Unsafe version ofparams_reserved.static IntBuffernreserved(long struct) Unsafe version ofreserved().static intnreserved(long struct, int index) Unsafe version ofreserved.static voidnreserved(long struct, int index, int value) Unsafe version ofreserved.static voidUnsafe version ofreserved.longparams_fence_value(long value) Sets the specified value to thevaluefield.longparams_keyedMutex_key(long value) Sets the specified value to thekeyfield.longparams_nvSciSync_fence(long value) Sets the specified value to thefencefield.longparams_nvSciSync_reserved(long value) Sets the specified value to thereservedfield.intparams_reserved(int index) params_reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.params_reserved(IntBuffer value) Copies the specifiedIntBufferto thereservedfield.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PARAMS
public static final int PARAMSThe struct member offsets. -
PARAMS_FENCE
public static final int PARAMS_FENCEThe struct member offsets. -
PARAMS_FENCE_VALUE
public static final int PARAMS_FENCE_VALUEThe struct member offsets. -
PARAMS_NVSCISYNC
public static final int PARAMS_NVSCISYNCThe struct member offsets. -
PARAMS_NVSCISYNC_FENCE
public static final int PARAMS_NVSCISYNC_FENCEThe struct member offsets. -
PARAMS_NVSCISYNC_RESERVED
public static final int PARAMS_NVSCISYNC_RESERVEDThe struct member offsets. -
PARAMS_KEYEDMUTEX
public static final int PARAMS_KEYEDMUTEXThe struct member offsets. -
PARAMS_KEYEDMUTEX_KEY
public static final int PARAMS_KEYEDMUTEX_KEYThe struct member offsets. -
PARAMS_RESERVED
public static final int PARAMS_RESERVEDThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
Creates aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS>
-
params_fence_value
public long params_fence_value()- Returns:
- the value of the
params.fence.valuefield.
-
params_nvSciSync_fence
public long params_nvSciSync_fence()- Returns:
- the value of the
params.nvSciSync.fencefield.
-
params_nvSciSync_reserved
public long params_nvSciSync_reserved()- Returns:
- the value of the
params.nvSciSync.reservedfield.
-
params_keyedMutex_key
public long params_keyedMutex_key()- Returns:
- the value of the
params.keyedMutex.keyfield.
-
params_reserved
- Returns:
- a
IntBufferview of theparams.reservedfield.
-
params_reserved
public int params_reserved(int index) - Returns:
- the value at the specified index of the
params.reservedfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
params_fence_value
Sets the specified value to thevaluefield. -
params_nvSciSync_fence
Sets the specified value to thefencefield. -
params_nvSciSync_reserved
Sets the specified value to thereservedfield. -
params_keyedMutex_key
Sets the specified value to thekeyfield. -
params_reserved
Copies the specifiedIntBufferto thereservedfield. -
params_reserved
Sets the specified value at the specified index of thereservedfield. -
flags
Sets the specified value to theflagsfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withBufferUtils. -
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer createSafe(long address, int capacity) -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.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 CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nparams_fence_value
public static long nparams_fence_value(long struct) Unsafe version ofparams_fence_value(). -
nparams_nvSciSync_fence
public static long nparams_nvSciSync_fence(long struct) Unsafe version ofparams_nvSciSync_fence(). -
nparams_nvSciSync_reserved
public static long nparams_nvSciSync_reserved(long struct) Unsafe version ofparams_nvSciSync_reserved(). -
nparams_keyedMutex_key
public static long nparams_keyedMutex_key(long struct) Unsafe version ofparams_keyedMutex_key(). -
nparams_reserved
Unsafe version ofparams_reserved(). -
nparams_reserved
public static int nparams_reserved(long struct, int index) Unsafe version ofparams_reserved. -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nreserved
Unsafe version ofreserved(). -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved. -
nparams_fence_value
public static void nparams_fence_value(long struct, long value) Unsafe version ofparams_fence_value. -
nparams_nvSciSync_fence
public static void nparams_nvSciSync_fence(long struct, long value) Unsafe version ofparams_nvSciSync_fence. -
nparams_nvSciSync_reserved
public static void nparams_nvSciSync_reserved(long struct, long value) Unsafe version ofparams_nvSciSync_reserved. -
nparams_keyedMutex_key
public static void nparams_keyedMutex_key(long struct, long value) Unsafe version ofparams_keyedMutex_key. -
nparams_reserved
Unsafe version ofparams_reserved. -
nparams_reserved
public static void nparams_reserved(long struct, int index, int value) Unsafe version ofparams_reserved. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nreserved
Unsafe version ofreserved. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved.
-