Package org.lwjgl.cuda
Class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceExternal semaphore signal parameters.Layout
struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS { struct { struct { unsigned long longvalue; } fence; union { void *fence; unsigned long long reserved; } nvSciSync; struct { unsigned long longkey; } keyedMutex; unsigned int params[12]; } params; unsigned intflags(); unsigned int reserved[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BufferAn array ofCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
PARAMS
PARAMS_FENCE
PARAMS_FENCE_VALUE
PARAMS_KEYEDMUTEX
PARAMS_KEYEDMUTEX_KEY
PARAMS_NVSCISYNC
PARAMS_NVSCISYNC_FENCE
PARAMS_NVSCISYNC_RESERVED
PARAMS_PARAMS
RESERVEDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(java.nio.ByteBuffer container)Creates aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance 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 CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScalloc()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemCalloc.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffercalloc(int capacity)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemCalloc.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffercalloc(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.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScallocStack()Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffercallocStack(int capacity)Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScreate()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withBufferUtils.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffercreate(int capacity)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withBufferUtils.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScreate(long address)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance for the specified memory address.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffercreate(long address, int capacity)Create aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance at the specified memory.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMScreateSafe(long address)static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffercreateSafe(long address, int capacity)intflags()only whenCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSis used to signal aCUexternalSemaphoreof typeEXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC, the valid flag isCU.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNCwhich indicates that while signaling theCUexternalSemaphore, no memory synchronization operations should be performed for any external memory object imported asEXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSflags(int value)Sets the specified value to theflags()field.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSmalloc()Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemAlloc.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffermalloc(int capacity)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemAlloc.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStack.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSmallocStack()Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffermallocStack(int capacity)Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSmallocStack(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 java.nio.IntBuffernparams_params(long struct)Unsafe version ofparams_params().static intnparams_params(long struct, int index)Unsafe version ofparams_params.static voidnparams_params(long struct, int index, int value)Unsafe version ofparams_params.static voidnparams_params(long struct, java.nio.IntBuffer value)Unsafe version ofparams_params.static java.nio.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 voidnreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.longparams_fence_value()value of fence to be signaledCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_fence_value(long value)Sets the specified value to theparams_fence_value()field.longparams_keyedMutex_key()value of key to release the mutex withCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_keyedMutex_key(long value)Sets the specified value to theparams_keyedMutex_key()field.longparams_nvSciSync_fence()pointer toNvSciSyncFence.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_nvSciSync_fence(long value)Sets the specified value to theparams_nvSciSync_fence()field.longparams_nvSciSync_reserved()CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_nvSciSync_reserved(long value)Sets the specified value to thereservedfield.java.nio.IntBufferparams_params()intparams_params(int index)CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_params(int index, int value)Sets the specified value at the specified index of theparamsfield.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSparams_params(java.nio.IntBuffer value)Copies the specifiedIntBufferto theparamsfield.java.nio.IntBufferreserved()intreserved(int index)CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSset(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
params_fence_value
public long params_fence_value()
value of fence to be signaled
-
params_nvSciSync_fence
public long params_nvSciSync_fence()
pointer toNvSciSyncFence. Valid ifCUexternalSemaphoreHandleTypeis of typeEXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC.
-
params_nvSciSync_reserved
public long params_nvSciSync_reserved()
- Returns:
- the value of the
params.nvSciSync.reservedfield.
-
params_keyedMutex_key
public long params_keyedMutex_key()
value of key to release the mutex with
-
params_params
public java.nio.IntBuffer params_params()
- Returns:
- a
IntBufferview of theparams.paramsfield.
-
params_params
public int params_params(int index)
- Returns:
- the value at the specified index of the
params.paramsfield.
-
flags
public int flags()
only whenCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSis used to signal aCUexternalSemaphoreof typeEXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC, the valid flag isCU.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNCwhich indicates that while signaling theCUexternalSemaphore, no memory synchronization operations should be performed for any external memory object imported asEXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types ofCUexternalSemaphore,flagsmust be zero.
-
reserved
public java.nio.IntBuffer 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
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_fence_value(long value)
Sets the specified value to theparams_fence_value()field.
-
params_nvSciSync_fence
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_nvSciSync_fence(long value)
Sets the specified value to theparams_nvSciSync_fence()field.
-
params_nvSciSync_reserved
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_nvSciSync_reserved(long value)
Sets the specified value to thereservedfield.
-
params_keyedMutex_key
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_keyedMutex_key(long value)
Sets the specified value to theparams_keyedMutex_key()field.
-
params_params
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_params(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theparamsfield.
-
params_params
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS params_params(int index, int value)
Sets the specified value at the specified index of theparamsfield.
-
flags
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS flags(int value)
Sets the specified value to theflags()field.
-
reserved
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
set
public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS set(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS malloc()
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS calloc()
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS create()
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated withBufferUtils.
-
create
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS create(long address)
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS createSafe(long address)
-
malloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer malloc(int capacity)
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer calloc(int capacity)
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer create(int capacity)
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer create(long address, int capacity)
Create aCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS 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 public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer mallocStack(int capacity)
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)
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
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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_params
public static java.nio.IntBuffer nparams_params(long struct)
Unsafe version ofparams_params().
-
nparams_params
public static int nparams_params(long struct, int index)Unsafe version ofparams_params.
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nreserved
public static java.nio.IntBuffer nreserved(long struct)
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_params
public static void nparams_params(long struct, java.nio.IntBuffer value)Unsafe version ofparams_params.
-
nparams_params
public static void nparams_params(long struct, int index, int value)Unsafe version ofparams_params.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nreserved
public static void nreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, int value)Unsafe version ofreserved.
-
-