Package org.lwjgl.cuda
Class CUgraphNodeParams.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUgraphNodeParams.Buffer>
org.lwjgl.system.StructBuffer<CUgraphNodeParams,CUgraphNodeParams.Buffer>
org.lwjgl.cuda.CUgraphNodeParams.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<CUgraphNodeParams>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
CUgraphNodeParams
public static class CUgraphNodeParams.Buffer
extends org.lwjgl.system.StructBuffer<CUgraphNodeParams,CUgraphNodeParams.Buffer>
implements org.lwjgl.system.NativeResource
An array of
CUgraphNodeParams structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newCUgraphNodeParams.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionparams_alloc(Consumer<CUDA_MEM_ALLOC_NODE_PARAMS> consumer) Passes theallocfield to the specifiedConsumer.Copies the specifiedCUDA_MEM_ALLOC_NODE_PARAMSto theallocfield.Passes theconditionalfield to the specifiedConsumer.Copies the specifiedCUDA_CONDITIONAL_NODE_PARAMSto theconditionalfield.Passes theeventRecordfield to the specifiedConsumer.Copies the specifiedCUDA_EVENT_RECORD_NODE_PARAMSto theeventRecordfield.params_eventWait(Consumer<CUDA_EVENT_WAIT_NODE_PARAMS> consumer) Passes theeventWaitfield to the specifiedConsumer.Copies the specifiedCUDA_EVENT_WAIT_NODE_PARAMSto theeventWaitfield.Passes theextSemSignalfield to the specifiedConsumer.Copies the specifiedCUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2to theextSemSignalfield.Passes theextSemWaitfield to the specifiedConsumer.Copies the specifiedCUDA_EXT_SEM_WAIT_NODE_PARAMS_v2to theextSemWaitfield.params_free(Consumer<CUDA_MEM_FREE_NODE_PARAMS> consumer) Passes thefreefield to the specifiedConsumer.Copies the specifiedCUDA_MEM_FREE_NODE_PARAMSto thefreefield.params_graph(Consumer<CUDA_CHILD_GRAPH_NODE_PARAMS> consumer) Passes thegraphfield to the specifiedConsumer.Copies the specifiedCUDA_CHILD_GRAPH_NODE_PARAMSto thegraphfield.params_host(Consumer<CUDA_HOST_NODE_PARAMS_v2> consumer) Passes thehostfield to the specifiedConsumer.Copies the specifiedCUDA_HOST_NODE_PARAMS_v2to thehostfield.params_kernel(Consumer<CUDA_KERNEL_NODE_PARAMS_v3> consumer) Passes thekernelfield to the specifiedConsumer.Copies the specifiedCUDA_KERNEL_NODE_PARAMS_v3to thekernelfield.params_memcpy(Consumer<CUDA_MEMCPY_NODE_PARAMS> consumer) Passes thememcpyfield to the specifiedConsumer.Copies the specifiedCUDA_MEMCPY_NODE_PARAMSto thememcpyfield.params_memOp(Consumer<CUDA_BATCH_MEM_OP_NODE_PARAMS> consumer) Passes thememOpfield to the specifiedConsumer.Copies the specifiedCUDA_BATCH_MEM_OP_NODE_PARAMSto thememOpfield.params_memset(Consumer<CUDA_MEMSET_NODE_PARAMS_v2> consumer) Passes thememsetfield to the specifiedConsumer.Copies the specifiedCUDA_MEMSET_NODE_PARAMS_v2to thememsetfield.longparams_reserved1(int index) params_reserved1(int index, long value) Sets the specified value at the specified index of thereserved1field.params_reserved1(LongBuffer value) Copies the specifiedLongBufferto thereserved1field.inttype()type(int value) Sets the specified value to thetypefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newCUgraphNodeParams.Bufferinstance 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
CUgraphNodeParams.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
-
type
public int type()- Returns:
- the value of the
typefield.
-
params_reserved1
- Returns:
- a
LongBufferview of theparams.reserved1field.
-
params_reserved1
public long params_reserved1(int index) - Returns:
- the value at the specified index of the
params.reserved1field.
-
params_kernel
- Returns:
- a
CUDA_KERNEL_NODE_PARAMS_v3view of theparams.kernelfield.
-
params_memcpy
- Returns:
- a
CUDA_MEMCPY_NODE_PARAMSview of theparams.memcpyfield.
-
params_memset
- Returns:
- a
CUDA_MEMSET_NODE_PARAMS_v2view of theparams.memsetfield.
-
params_host
- Returns:
- a
CUDA_HOST_NODE_PARAMS_v2view of theparams.hostfield.
-
params_graph
- Returns:
- a
CUDA_CHILD_GRAPH_NODE_PARAMSview of theparams.graphfield.
-
params_eventWait
- Returns:
- a
CUDA_EVENT_WAIT_NODE_PARAMSview of theparams.eventWaitfield.
-
params_eventRecord
- Returns:
- a
CUDA_EVENT_RECORD_NODE_PARAMSview of theparams.eventRecordfield.
-
params_extSemSignal
- Returns:
- a
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2view of theparams.extSemSignalfield.
-
params_extSemWait
- Returns:
- a
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2view of theparams.extSemWaitfield.
-
params_alloc
- Returns:
- a
CUDA_MEM_ALLOC_NODE_PARAMSview of theparams.allocfield.
-
params_free
- Returns:
- a
CUDA_MEM_FREE_NODE_PARAMSview of theparams.freefield.
-
params_memOp
- Returns:
- a
CUDA_BATCH_MEM_OP_NODE_PARAMSview of theparams.memOpfield.
-
params_conditional
- Returns:
- a
CUDA_CONDITIONAL_NODE_PARAMSview of theparams.conditionalfield.
-
type
Sets the specified value to thetypefield. -
params_reserved1
Copies the specifiedLongBufferto thereserved1field. -
params_reserved1
Sets the specified value at the specified index of thereserved1field. -
params_kernel
Copies the specifiedCUDA_KERNEL_NODE_PARAMS_v3to thekernelfield. -
params_kernel
Passes thekernelfield to the specifiedConsumer. -
params_memcpy
Copies the specifiedCUDA_MEMCPY_NODE_PARAMSto thememcpyfield. -
params_memcpy
Passes thememcpyfield to the specifiedConsumer. -
params_memset
Copies the specifiedCUDA_MEMSET_NODE_PARAMS_v2to thememsetfield. -
params_memset
Passes thememsetfield to the specifiedConsumer. -
params_host
Copies the specifiedCUDA_HOST_NODE_PARAMS_v2to thehostfield. -
params_host
Passes thehostfield to the specifiedConsumer. -
params_graph
Copies the specifiedCUDA_CHILD_GRAPH_NODE_PARAMSto thegraphfield. -
params_graph
Passes thegraphfield to the specifiedConsumer. -
params_eventWait
Copies the specifiedCUDA_EVENT_WAIT_NODE_PARAMSto theeventWaitfield. -
params_eventWait
Passes theeventWaitfield to the specifiedConsumer. -
params_eventRecord
Copies the specifiedCUDA_EVENT_RECORD_NODE_PARAMSto theeventRecordfield. -
params_eventRecord
public CUgraphNodeParams.Buffer params_eventRecord(Consumer<CUDA_EVENT_RECORD_NODE_PARAMS> consumer) Passes theeventRecordfield to the specifiedConsumer. -
params_extSemSignal
Copies the specifiedCUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2to theextSemSignalfield. -
params_extSemSignal
public CUgraphNodeParams.Buffer params_extSemSignal(Consumer<CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2> consumer) Passes theextSemSignalfield to the specifiedConsumer. -
params_extSemWait
Copies the specifiedCUDA_EXT_SEM_WAIT_NODE_PARAMS_v2to theextSemWaitfield. -
params_extSemWait
public CUgraphNodeParams.Buffer params_extSemWait(Consumer<CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2> consumer) Passes theextSemWaitfield to the specifiedConsumer. -
params_alloc
Copies the specifiedCUDA_MEM_ALLOC_NODE_PARAMSto theallocfield. -
params_alloc
Passes theallocfield to the specifiedConsumer. -
params_free
Copies the specifiedCUDA_MEM_FREE_NODE_PARAMSto thefreefield. -
params_free
Passes thefreefield to the specifiedConsumer. -
params_memOp
Copies the specifiedCUDA_BATCH_MEM_OP_NODE_PARAMSto thememOpfield. -
params_memOp
Passes thememOpfield to the specifiedConsumer. -
params_conditional
Copies the specifiedCUDA_CONDITIONAL_NODE_PARAMSto theconditionalfield. -
params_conditional
Passes theconditionalfield to the specifiedConsumer.
-