public class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
params – Parameters for fence objects
params.fence – Value of fence to be waited onflags – Flags reserved for the future. Must be zero.
struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS {
struct {
struct {
unsigned long long value;
} fence;
unsigned int reserved[16];
} params;
unsigned int flags;
unsigned int reserved[16];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer
An array of
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PARAMS
The struct member offsets.
|
static int |
PARAMS_FENCE
The struct member offsets.
|
static int |
PARAMS_FENCE_VALUE
The struct member offsets.
|
static int |
PARAMS_RESERVED
The struct member offsets.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(java.nio.ByteBuffer container)
Creates a
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
calloc()
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memCalloc. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
calloc(int capacity)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memCalloc. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
callocStack()
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
callocStack(int capacity)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
create()
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with BufferUtils. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
create(int capacity)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with BufferUtils. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
create(long address)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance for the specified memory address. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
create(long address,
int capacity)
Create a
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance at the specified memory. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
createSafe(long address)
|
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
flags(int value)
Sets the specified value to the
flags field. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
malloc()
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memAlloc. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
malloc(int capacity)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memAlloc. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
mallocStack()
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the thread-local MemoryStack. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack. |
static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
nparams_fence_value(long struct)
Unsafe version of
params_fence_value(). |
static void |
nparams_fence_value(long struct,
long value)
Unsafe version of
params_fence_value. |
static java.nio.IntBuffer |
nparams_reserved(long struct)
Unsafe version of
params_reserved(). |
static int |
nparams_reserved(long struct,
int index)
Unsafe version of
params_reserved. |
static void |
nparams_reserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
params_reserved. |
static void |
nparams_reserved(long struct,
int index,
int value)
Unsafe version of
params_reserved. |
static java.nio.IntBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static int |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
int value)
Unsafe version of
reserved. |
long |
params_fence_value()
Returns the value of the
params.fence.value field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
params_fence_value(long value)
Sets the specified value to the
params.fence.value field. |
java.nio.IntBuffer |
params_reserved()
Returns a
IntBuffer view of the params.reserved field. |
int |
params_reserved(int index)
Returns the value at the specified index of the
params.reserved field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
params_reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the params.reserved field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
params_reserved(int index,
int value)
Sets the specified value at the specified index of the
params.reserved field. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
set(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS src)
Copies the specified struct data to this struct.
|
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS |
set(long params_fence_value,
java.nio.IntBuffer params_reserved,
int flags,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PARAMS
public static final int PARAMS_FENCE
public static final int PARAMS_FENCE_VALUE
public static final int PARAMS_RESERVED
public static final int FLAGS
public static final int RESERVED
public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(java.nio.ByteBuffer container)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long params_fence_value()
params.fence.value field.public java.nio.IntBuffer params_reserved()
IntBuffer view of the params.reserved field.public int params_reserved(int index)
params.reserved field.public int flags()
flags field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS params_fence_value(long value)
params.fence.value field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS params_reserved(java.nio.IntBuffer value)
IntBuffer to the params.reserved field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS params_reserved(int index, int value)
params.reserved field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS flags(int value)
flags field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS reserved(int index, int value)
reserved field.public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS set(long params_fence_value, java.nio.IntBuffer params_reserved, int flags, java.nio.IntBuffer reserved)
public CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS set(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS src)
src - the source structpublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS malloc()
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS calloc()
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS create()
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated with BufferUtils.public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS create(long address)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance for the specified memory address.@Nullable public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS createSafe(long address)
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer malloc(int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer calloc(int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer create(int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer create(long address, int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer createSafe(long address, int capacity)
public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS mallocStack()
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the thread-local MemoryStack.public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS callocStack()
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer mallocStack(int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer callocStack(int capacity)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nparams_fence_value(long struct)
params_fence_value().public static java.nio.IntBuffer nparams_reserved(long struct)
params_reserved().public static int nparams_reserved(long struct,
int index)
params_reserved.public static int nflags(long struct)
flags().public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void nparams_fence_value(long struct,
long value)
params_fence_value.public static void nparams_reserved(long struct,
java.nio.IntBuffer value)
params_reserved.public static void nparams_reserved(long struct,
int index,
int value)
params_reserved.public static void nflags(long struct,
int value)
flags.public static void nreserved(long struct,
java.nio.IntBuffer value)
reserved.public static void nreserved(long struct,
int index,
int value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.