Package org.lwjgl.cuda
Class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer>
org.lwjgl.cuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS>
,NativeResource
,Pointer
- Enclosing class:
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
public static class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer
extends StructBuffer<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer>
implements NativeResource
An array of
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
flags()
flags
(int value) Sets the specified value to theflags
field.long
params_fence_value
(long value) Sets the specified value to thevalue
field.long
params_keyedMutex_key
(long value) Sets the specified value to thekey
field.long
params_nvSciSync_fence
(long value) Sets the specified value to thefence
field.long
params_nvSciSync_reserved
(long value) Sets the specified value to thereserved
field.int
params_reserved
(int index) params_reserved
(int index, int value) Sets the specified value at the specified index of thereserved
field.params_reserved
(IntBuffer value) Copies the specifiedIntBuffer
to thereserved
field.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.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newCUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.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_SIGNAL_PARAMS.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
params_fence_value
public long params_fence_value()- Returns:
- the value of the
params.fence.value
field.
-
params_nvSciSync_fence
public long params_nvSciSync_fence()- Returns:
- the value of the
params.nvSciSync.fence
field.
-
params_nvSciSync_reserved
public long params_nvSciSync_reserved()- Returns:
- the value of the
params.nvSciSync.reserved
field.
-
params_keyedMutex_key
public long params_keyedMutex_key()- Returns:
- the value of the
params.keyedMutex.key
field.
-
params_reserved
- Returns:
- a
IntBuffer
view of theparams.reserved
field.
-
params_reserved
public int params_reserved(int index) - Returns:
- the value at the specified index of the
params.reserved
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.
-
params_fence_value
Sets the specified value to thevalue
field. -
params_nvSciSync_fence
Sets the specified value to thefence
field. -
params_nvSciSync_reserved
Sets the specified value to thereserved
field. -
params_keyedMutex_key
Sets the specified value to thekey
field. -
params_reserved
Copies the specifiedIntBuffer
to thereserved
field. -
params_reserved
Sets the specified value at the specified index of thereserved
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.
-