Package org.lwjgl.opencl
Class CLMutableDispatchConfigKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class CLMutableDispatchConfigKHR
extends Struct<CLMutableDispatchConfigKHR>
implements NativeResource
struct cl_mutable_dispatch_config_khr {
cl_mutable_command_khr command;
cl_uint num_args;
cl_uint num_svm_args;
cl_uint num_exec_infos;
cl_uint work_dim;
{@link CLMutableDispatchArgKHR cl_mutable_dispatch_arg_khr} const * arg_list;
{@link CLMutableDispatchArgKHR cl_mutable_dispatch_arg_khr} const * arg_svm_list;
{@link CLMutableDispatchExecInfoKHR cl_mutable_dispatch_exec_info_khr} const * exec_info_list;
size_t const * global_work_offset;
size_t const * global_work_size;
size_t const * local_work_size;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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 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
ConstructorsConstructorDescriptionCLMutableDispatchConfigKHR
(ByteBuffer container) Creates aCLMutableDispatchConfigKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescription@Nullable CLMutableDispatchArgKHR.Buffer
arg_list()
arg_list
(@Nullable CLMutableDispatchArgKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchArgKHR.Buffer
to thearg_list
field.@Nullable CLMutableDispatchArgKHR.Buffer
arg_svm_list
(@Nullable CLMutableDispatchArgKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchArgKHR.Buffer
to thearg_svm_list
field.static CLMutableDispatchConfigKHR
calloc()
Returns a newCLMutableDispatchConfigKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMutableDispatchConfigKHR
calloc
(MemoryStack stack) Returns a newCLMutableDispatchConfigKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
command()
command
(long value) Sets the specified value to thecommand
field.static CLMutableDispatchConfigKHR
create()
Returns a newCLMutableDispatchConfigKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withBufferUtils
.static CLMutableDispatchConfigKHR
create
(long address) Returns a newCLMutableDispatchConfigKHR
instance for the specified memory address.create
(long address, int capacity) Create aCLMutableDispatchConfigKHR.Buffer
instance at the specified memory.static @Nullable CLMutableDispatchConfigKHR
createSafe
(long address) static @Nullable CLMutableDispatchConfigKHR.Buffer
createSafe
(long address, int capacity) @Nullable CLMutableDispatchExecInfoKHR.Buffer
exec_info_list
(@Nullable CLMutableDispatchExecInfoKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchExecInfoKHR.Buffer
to theexec_info_list
field.@Nullable PointerBuffer
global_work_offset
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theglobal_work_offset
field.@Nullable PointerBuffer
global_work_size
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theglobal_work_size
field.@Nullable PointerBuffer
local_work_size
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thelocal_work_size
field.static CLMutableDispatchConfigKHR
malloc()
Returns a newCLMutableDispatchConfigKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated on the specifiedMemoryStack
.static CLMutableDispatchConfigKHR
malloc
(MemoryStack stack) Returns a newCLMutableDispatchConfigKHR
instance allocated on the specifiedMemoryStack
.static @Nullable CLMutableDispatchArgKHR.Buffer
narg_list
(long struct) Unsafe version ofarg_list()
.static void
narg_list
(long struct, @Nullable CLMutableDispatchArgKHR.Buffer value) Unsafe version ofarg_list
.static @Nullable CLMutableDispatchArgKHR.Buffer
narg_svm_list
(long struct) Unsafe version ofarg_svm_list()
.static void
narg_svm_list
(long struct, @Nullable CLMutableDispatchArgKHR.Buffer value) Unsafe version ofarg_svm_list
.static long
ncommand
(long struct) Unsafe version ofcommand()
.static void
ncommand
(long struct, long value) Unsafe version ofcommand
.static @Nullable CLMutableDispatchExecInfoKHR.Buffer
nexec_info_list
(long struct) Unsafe version ofexec_info_list()
.static void
nexec_info_list
(long struct, @Nullable CLMutableDispatchExecInfoKHR.Buffer value) Unsafe version ofexec_info_list
.static @Nullable PointerBuffer
nglobal_work_offset
(long struct) Unsafe version ofglobal_work_offset
.static void
nglobal_work_offset
(long struct, @Nullable PointerBuffer value) Unsafe version ofglobal_work_offset
.static @Nullable PointerBuffer
nglobal_work_size
(long struct) Unsafe version ofglobal_work_size
.static void
nglobal_work_size
(long struct, @Nullable PointerBuffer value) Unsafe version ofglobal_work_size
.static @Nullable PointerBuffer
nlocal_work_size
(long struct) Unsafe version oflocal_work_size
.static void
nlocal_work_size
(long struct, @Nullable PointerBuffer value) Unsafe version oflocal_work_size
.static int
nnum_args
(long struct) Unsafe version ofnum_args()
.static void
nnum_args
(long struct, int value) Sets the specified value to thenum_args
field of the specifiedstruct
.static int
nnum_exec_infos
(long struct) Unsafe version ofnum_exec_infos()
.static void
nnum_exec_infos
(long struct, int value) Sets the specified value to thenum_exec_infos
field of the specifiedstruct
.static int
nnum_svm_args
(long struct) Unsafe version ofnum_svm_args()
.static void
nnum_svm_args
(long struct, int value) Sets the specified value to thenum_svm_args
field of the specifiedstruct
.int
num_args()
num_args
(int value) Sets the specified value to thenum_args
field.int
num_exec_infos
(int value) Sets the specified value to thenum_exec_infos
field.int
num_svm_args
(int value) Sets the specified value to thenum_svm_args
field.static int
nwork_dim
(long struct) Unsafe version ofwork_dim()
.static void
nwork_dim
(long struct, int value) Unsafe version ofwork_dim
.set
(long command, int num_args, int num_svm_args, int num_exec_infos, int work_dim, @Nullable CLMutableDispatchArgKHR.Buffer arg_list, @Nullable CLMutableDispatchArgKHR.Buffer arg_svm_list, @Nullable CLMutableDispatchExecInfoKHR.Buffer exec_info_list, @Nullable PointerBuffer global_work_offset, @Nullable PointerBuffer global_work_size, @Nullable PointerBuffer local_work_size) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
work_dim()
work_dim
(int value) Sets the specified value to thework_dim
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. -
COMMAND
public static final int COMMANDThe struct member offsets. -
NUM_ARGS
public static final int NUM_ARGSThe struct member offsets. -
NUM_SVM_ARGS
public static final int NUM_SVM_ARGSThe struct member offsets. -
NUM_EXEC_INFOS
public static final int NUM_EXEC_INFOSThe struct member offsets. -
WORK_DIM
public static final int WORK_DIMThe struct member offsets. -
ARG_LIST
public static final int ARG_LISTThe struct member offsets. -
ARG_SVM_LIST
public static final int ARG_SVM_LISTThe struct member offsets. -
EXEC_INFO_LIST
public static final int EXEC_INFO_LISTThe struct member offsets. -
GLOBAL_WORK_OFFSET
public static final int GLOBAL_WORK_OFFSETThe struct member offsets. -
GLOBAL_WORK_SIZE
public static final int GLOBAL_WORK_SIZEThe struct member offsets. -
LOCAL_WORK_SIZE
public static final int LOCAL_WORK_SIZEThe struct member offsets.
-
-
Constructor Details
-
CLMutableDispatchConfigKHR
Creates aCLMutableDispatchConfigKHR
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<CLMutableDispatchConfigKHR>
-
command
public long command()- Returns:
- the value of the
command
field.
-
num_args
public int num_args()- Returns:
- the value of the
num_args
field.
-
num_svm_args
public int num_svm_args()- Returns:
- the value of the
num_svm_args
field.
-
num_exec_infos
public int num_exec_infos()- Returns:
- the value of the
num_exec_infos
field.
-
work_dim
public int work_dim()- Returns:
- the value of the
work_dim
field.
-
arg_list
- Returns:
- a
CLMutableDispatchArgKHR.Buffer
view of the struct array pointed to by thearg_list
field.
-
arg_svm_list
- Returns:
- a
CLMutableDispatchArgKHR.Buffer
view of the struct array pointed to by thearg_svm_list
field.
-
exec_info_list
- Returns:
- a
CLMutableDispatchExecInfoKHR.Buffer
view of the struct array pointed to by theexec_info_list
field.
-
global_work_offset
- Returns:
- a
PointerBuffer
view of the data pointed to by theglobal_work_offset
field.
-
global_work_size
- Returns:
- a
PointerBuffer
view of the data pointed to by theglobal_work_size
field.
-
local_work_size
- Returns:
- a
PointerBuffer
view of the data pointed to by thelocal_work_size
field.
-
command
Sets the specified value to thecommand
field. -
num_args
Sets the specified value to thenum_args
field. -
num_svm_args
Sets the specified value to thenum_svm_args
field. -
num_exec_infos
Sets the specified value to thenum_exec_infos
field. -
work_dim
Sets the specified value to thework_dim
field. -
arg_list
Sets the address of the specifiedCLMutableDispatchArgKHR.Buffer
to thearg_list
field. -
arg_svm_list
Sets the address of the specifiedCLMutableDispatchArgKHR.Buffer
to thearg_svm_list
field. -
exec_info_list
public CLMutableDispatchConfigKHR exec_info_list(@Nullable CLMutableDispatchExecInfoKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchExecInfoKHR.Buffer
to theexec_info_list
field. -
global_work_offset
Sets the address of the specifiedPointerBuffer
to theglobal_work_offset
field. -
global_work_size
Sets the address of the specifiedPointerBuffer
to theglobal_work_size
field. -
local_work_size
Sets the address of the specifiedPointerBuffer
to thelocal_work_size
field. -
set
public CLMutableDispatchConfigKHR set(long command, int num_args, int num_svm_args, int num_exec_infos, int work_dim, @Nullable CLMutableDispatchArgKHR.Buffer arg_list, @Nullable CLMutableDispatchArgKHR.Buffer arg_svm_list, @Nullable CLMutableDispatchExecInfoKHR.Buffer exec_info_list, @Nullable PointerBuffer global_work_offset, @Nullable PointerBuffer global_work_size, @Nullable PointerBuffer local_work_size) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newCLMutableDispatchConfigKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLMutableDispatchConfigKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLMutableDispatchConfigKHR
instance allocated withBufferUtils
. -
create
Returns a newCLMutableDispatchConfigKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLMutableDispatchConfigKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newCLMutableDispatchConfigKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchConfigKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchConfigKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncommand
public static long ncommand(long struct) Unsafe version ofcommand()
. -
nnum_args
public static int nnum_args(long struct) Unsafe version ofnum_args()
. -
nnum_svm_args
public static int nnum_svm_args(long struct) Unsafe version ofnum_svm_args()
. -
nnum_exec_infos
public static int nnum_exec_infos(long struct) Unsafe version ofnum_exec_infos()
. -
nwork_dim
public static int nwork_dim(long struct) Unsafe version ofwork_dim()
. -
narg_list
Unsafe version ofarg_list()
. -
narg_svm_list
Unsafe version ofarg_svm_list()
. -
nexec_info_list
Unsafe version ofexec_info_list()
. -
nglobal_work_offset
Unsafe version ofglobal_work_offset
. -
nglobal_work_size
Unsafe version ofglobal_work_size
. -
nlocal_work_size
Unsafe version oflocal_work_size
. -
ncommand
public static void ncommand(long struct, long value) Unsafe version ofcommand
. -
nnum_args
public static void nnum_args(long struct, int value) Sets the specified value to thenum_args
field of the specifiedstruct
. -
nnum_svm_args
public static void nnum_svm_args(long struct, int value) Sets the specified value to thenum_svm_args
field of the specifiedstruct
. -
nnum_exec_infos
public static void nnum_exec_infos(long struct, int value) Sets the specified value to thenum_exec_infos
field of the specifiedstruct
. -
nwork_dim
public static void nwork_dim(long struct, int value) Unsafe version ofwork_dim
. -
narg_list
Unsafe version ofarg_list
. -
narg_svm_list
Unsafe version ofarg_svm_list
. -
nexec_info_list
public static void nexec_info_list(long struct, @Nullable CLMutableDispatchExecInfoKHR.Buffer value) Unsafe version ofexec_info_list
. -
nglobal_work_offset
Unsafe version ofglobal_work_offset
. -
nglobal_work_size
Unsafe version ofglobal_work_size
. -
nlocal_work_size
Unsafe version oflocal_work_size
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-