Package org.lwjgl.cuda
Class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC>
org.lwjgl.cuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
extends Struct<CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC>
implements NativeResource
Layout
struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC {
CUexternalSemaphoreHandleType type;
union {
int fd;
struct {
void * handle;
void const * name;
} win32;
void const * nvSciSyncObj;
} handle;
unsigned int flags;
unsigned int reserved[16];
}
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An array ofCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
(ByteBuffer container) Creates aCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.callocStack
(MemoryStack stack) Deprecated.create()
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withBufferUtils
.create
(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance for the specified memory address.create
(long address, int capacity) Create aCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance at the specified memory.createSafe
(long address) createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
handle_fd
(int value) Sets the specified value to thefd
field.long
handle_nvSciSyncObj
(long value) Sets the specified value to thenvSciSyncObj
field.long
handle_win32_handle
(long value) Sets the specified value to thehandle
field.long
handle_win32_name
(long value) Sets the specified value to thename
field.malloc()
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated on the specifiedMemoryStack
.Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.mallocStack
(MemoryStack stack) Deprecated.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nhandle_fd
(long struct) Unsafe version ofhandle_fd()
.static void
nhandle_fd
(long struct, int value) Unsafe version ofhandle_fd
.static long
nhandle_nvSciSyncObj
(long struct) Unsafe version ofhandle_nvSciSyncObj()
.static void
nhandle_nvSciSyncObj
(long struct, long value) Unsafe version ofhandle_nvSciSyncObj
.static long
nhandle_win32_handle
(long struct) Unsafe version ofhandle_win32_handle()
.static void
nhandle_win32_handle
(long struct, long value) Unsafe version ofhandle_win32_handle
.static long
nhandle_win32_name
(long struct) Unsafe version ofhandle_win32_name()
.static void
nhandle_win32_name
(long struct, long value) Unsafe version ofhandle_win32_name
.static IntBuffer
nreserved
(long struct) Unsafe version ofreserved()
.static int
nreserved
(long struct, int index) Unsafe version ofreserved
.static void
nreserved
(long struct, int index, int value) Unsafe version ofreserved
.static void
Unsafe version ofreserved
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.reserved()
int
reserved
(int index) reserved
(int index, int value) Sets the specified value at the specified index of thereserved
field.Copies the specifiedIntBuffer
to thereserved
field.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
TYPE
public static final int TYPEThe struct member offsets. -
HANDLE
public static final int HANDLEThe struct member offsets. -
HANDLE_FD
public static final int HANDLE_FDThe struct member offsets. -
HANDLE_WIN32
public static final int HANDLE_WIN32The struct member offsets. -
HANDLE_WIN32_HANDLE
public static final int HANDLE_WIN32_HANDLEThe struct member offsets. -
HANDLE_WIN32_NAME
public static final int HANDLE_WIN32_NAMEThe struct member offsets. -
HANDLE_NVSCISYNCOBJ
public static final int HANDLE_NVSCISYNCOBJThe 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_HANDLE_DESC
Creates aCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC>
-
type
public int type()- Returns:
- the value of the
type
field.
-
handle_fd
public int handle_fd()- Returns:
- the value of the
handle.fd
field.
-
handle_win32_handle
public long handle_win32_handle()- Returns:
- the value of the
handle.win32.handle
field.
-
handle_win32_name
public long handle_win32_name()- Returns:
- the value of the
handle.win32.name
field.
-
handle_nvSciSyncObj
public long handle_nvSciSyncObj()- Returns:
- the value of the
handle.nvSciSyncObj
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
reserved
- Returns:
- a
IntBuffer
view of thereserved
field.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reserved
field.
-
type
Sets the specified value to thetype
field. -
handle_fd
Sets the specified value to thefd
field. -
handle_win32_handle
Sets the specified value to thehandle
field. -
handle_win32_name
Sets the specified value to thename
field. -
handle_nvSciSyncObj
Sets the specified value to thenvSciSyncObj
field. -
flags
Sets the specified value to theflags
field. -
reserved
Copies the specifiedIntBuffer
to thereserved
field. -
reserved
Sets the specified value at the specified index of thereserved
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated withBufferUtils
. -
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.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.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
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_HANDLE_DESC.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nhandle_fd
public static int nhandle_fd(long struct) Unsafe version ofhandle_fd()
. -
nhandle_win32_handle
public static long nhandle_win32_handle(long struct) Unsafe version ofhandle_win32_handle()
. -
nhandle_win32_name
public static long nhandle_win32_name(long struct) Unsafe version ofhandle_win32_name()
. -
nhandle_nvSciSyncObj
public static long nhandle_nvSciSyncObj(long struct) Unsafe version ofhandle_nvSciSyncObj()
. -
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
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nhandle_fd
public static void nhandle_fd(long struct, int value) Unsafe version ofhandle_fd
. -
nhandle_win32_handle
public static void nhandle_win32_handle(long struct, long value) Unsafe version ofhandle_win32_handle
. -
nhandle_win32_name
public static void nhandle_win32_name(long struct, long value) Unsafe version ofhandle_win32_name
. -
nhandle_nvSciSyncObj
public static void nhandle_nvSciSyncObj(long struct, long value) Unsafe version ofhandle_nvSciSyncObj
. -
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
.
-