public static class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC,CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer> implements org.lwjgl.system.NativeResource
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
flags()
Returns the value of the
flags field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
flags(int value)
Sets the specified value to the
flags field. |
int |
handle_fd()
Returns the value of the
handle.fd field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
handle_fd(int value)
Sets the specified value to the
handle.fd field. |
long |
handle_win32_handle()
Returns the value of the
handle.win32.handle field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
handle_win32_handle(long value)
Sets the specified value to the
handle.win32.handle field. |
long |
handle_win32_name()
Returns the value of the
handle.win32.name field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
handle_win32_name(long value)
Sets the specified value to the
handle.win32.name 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_HANDLE_DESC.Buffer |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
int |
type()
Returns the value of the
type field. |
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer |
type(int value)
Sets the specified value to the
type field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer instance backed by the specified container.
Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int type()
type field.public int handle_fd()
handle.fd field.public long handle_win32_handle()
handle.win32.handle field.public long handle_win32_name()
handle.win32.name 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_HANDLE_DESC.Buffer type(int value)
type field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer handle_fd(int value)
handle.fd field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer handle_win32_handle(long value)
handle.win32.handle field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer handle_win32_name(long value)
handle.win32.name field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer flags(int value)
flags field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC.Buffer reserved(int index, int value)
reserved field.Copyright LWJGL. All Rights Reserved. License terms.