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;
cl_mutable_dispatch_arg_khr const * arg_list;
cl_mutable_dispatch_arg_khr const * arg_svm_list;
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aCLMutableDispatchConfigKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable CLMutableDispatchArgKHR.Bufferarg_list()arg_list(@Nullable CLMutableDispatchArgKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchArgKHR.Bufferto thearg_listfield.@Nullable CLMutableDispatchArgKHR.Bufferarg_svm_list(@Nullable CLMutableDispatchArgKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchArgKHR.Bufferto thearg_svm_listfield.static CLMutableDispatchConfigKHRcalloc()Returns a newCLMutableDispatchConfigKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLMutableDispatchConfigKHRcalloc(MemoryStack stack) Returns a newCLMutableDispatchConfigKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcommand()command(long value) Sets the specified value to thecommandfield.static CLMutableDispatchConfigKHRcreate()Returns a newCLMutableDispatchConfigKHRinstance allocated withBufferUtils.create(int capacity) Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withBufferUtils.static CLMutableDispatchConfigKHRcreate(long address) Returns a newCLMutableDispatchConfigKHRinstance for the specified memory address.create(long address, int capacity) Create aCLMutableDispatchConfigKHR.Bufferinstance at the specified memory.static @Nullable CLMutableDispatchConfigKHRcreateSafe(long address) static @Nullable CLMutableDispatchConfigKHR.BuffercreateSafe(long address, int capacity) @Nullable CLMutableDispatchExecInfoKHR.Bufferexec_info_list(@Nullable CLMutableDispatchExecInfoKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchExecInfoKHR.Bufferto theexec_info_listfield.@Nullable PointerBufferglobal_work_offset(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theglobal_work_offsetfield.@Nullable PointerBufferglobal_work_size(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theglobal_work_sizefield.@Nullable PointerBufferlocal_work_size(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thelocal_work_sizefield.static CLMutableDispatchConfigKHRmalloc()Returns a newCLMutableDispatchConfigKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated on the specifiedMemoryStack.static CLMutableDispatchConfigKHRmalloc(MemoryStack stack) Returns a newCLMutableDispatchConfigKHRinstance allocated on the specifiedMemoryStack.static @Nullable CLMutableDispatchArgKHR.Buffernarg_list(long struct) Unsafe version ofarg_list().static voidnarg_list(long struct, @Nullable CLMutableDispatchArgKHR.Buffer value) Unsafe version ofarg_list.static @Nullable CLMutableDispatchArgKHR.Buffernarg_svm_list(long struct) Unsafe version ofarg_svm_list().static voidnarg_svm_list(long struct, @Nullable CLMutableDispatchArgKHR.Buffer value) Unsafe version ofarg_svm_list.static longncommand(long struct) Unsafe version ofcommand().static voidncommand(long struct, long value) Unsafe version ofcommand.static @Nullable CLMutableDispatchExecInfoKHR.Buffernexec_info_list(long struct) Unsafe version ofexec_info_list().static voidnexec_info_list(long struct, @Nullable CLMutableDispatchExecInfoKHR.Buffer value) Unsafe version ofexec_info_list.static @Nullable PointerBuffernglobal_work_offset(long struct) Unsafe version ofglobal_work_offset.static voidnglobal_work_offset(long struct, @Nullable PointerBuffer value) Unsafe version ofglobal_work_offset.static @Nullable PointerBuffernglobal_work_size(long struct) Unsafe version ofglobal_work_size.static voidnglobal_work_size(long struct, @Nullable PointerBuffer value) Unsafe version ofglobal_work_size.static @Nullable PointerBuffernlocal_work_size(long struct) Unsafe version oflocal_work_size.static voidnlocal_work_size(long struct, @Nullable PointerBuffer value) Unsafe version oflocal_work_size.static intnnum_args(long struct) Unsafe version ofnum_args().static voidnnum_args(long struct, int value) Sets the specified value to thenum_argsfield of the specifiedstruct.static intnnum_exec_infos(long struct) Unsafe version ofnum_exec_infos().static voidnnum_exec_infos(long struct, int value) Sets the specified value to thenum_exec_infosfield of the specifiedstruct.static intnnum_svm_args(long struct) Unsafe version ofnum_svm_args().static voidnnum_svm_args(long struct, int value) Sets the specified value to thenum_svm_argsfield of the specifiedstruct.intnum_args()num_args(int value) Sets the specified value to thenum_argsfield.intnum_exec_infos(int value) Sets the specified value to thenum_exec_infosfield.intnum_svm_args(int value) Sets the specified value to thenum_svm_argsfield.static intnwork_dim(long struct) Unsafe version ofwork_dim().static voidnwork_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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.intwork_dim()work_dim(int value) Sets the specified value to thework_dimfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aCLMutableDispatchConfigKHRinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CLMutableDispatchConfigKHR>
-
command
public long command()- Returns:
- the value of the
commandfield.
-
num_args
public int num_args()- Returns:
- the value of the
num_argsfield.
-
num_svm_args
public int num_svm_args()- Returns:
- the value of the
num_svm_argsfield.
-
num_exec_infos
public int num_exec_infos()- Returns:
- the value of the
num_exec_infosfield.
-
work_dim
public int work_dim()- Returns:
- the value of the
work_dimfield.
-
arg_list
- Returns:
- a
CLMutableDispatchArgKHR.Bufferview of the struct array pointed to by thearg_listfield.
-
arg_svm_list
- Returns:
- a
CLMutableDispatchArgKHR.Bufferview of the struct array pointed to by thearg_svm_listfield.
-
exec_info_list
- Returns:
- a
CLMutableDispatchExecInfoKHR.Bufferview of the struct array pointed to by theexec_info_listfield.
-
global_work_offset
- Returns:
- a
PointerBufferview of the data pointed to by theglobal_work_offsetfield.
-
global_work_size
- Returns:
- a
PointerBufferview of the data pointed to by theglobal_work_sizefield.
-
local_work_size
- Returns:
- a
PointerBufferview of the data pointed to by thelocal_work_sizefield.
-
command
Sets the specified value to thecommandfield. -
num_args
Sets the specified value to thenum_argsfield. -
num_svm_args
Sets the specified value to thenum_svm_argsfield. -
num_exec_infos
Sets the specified value to thenum_exec_infosfield. -
work_dim
Sets the specified value to thework_dimfield. -
arg_list
Sets the address of the specifiedCLMutableDispatchArgKHR.Bufferto thearg_listfield. -
arg_svm_list
Sets the address of the specifiedCLMutableDispatchArgKHR.Bufferto thearg_svm_listfield. -
exec_info_list
public CLMutableDispatchConfigKHR exec_info_list(@Nullable CLMutableDispatchExecInfoKHR.Buffer value) Sets the address of the specifiedCLMutableDispatchExecInfoKHR.Bufferto theexec_info_listfield. -
global_work_offset
Sets the address of the specifiedPointerBufferto theglobal_work_offsetfield. -
global_work_size
Sets the address of the specifiedPointerBufferto theglobal_work_sizefield. -
local_work_size
Sets the address of the specifiedPointerBufferto thelocal_work_sizefield. -
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 newCLMutableDispatchConfigKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLMutableDispatchConfigKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLMutableDispatchConfigKHRinstance allocated withBufferUtils. -
create
Returns a newCLMutableDispatchConfigKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLMutableDispatchConfigKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCLMutableDispatchConfigKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchConfigKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchConfigKHR.Bufferinstance allocated on the specifiedMemoryStackand 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_argsfield of the specifiedstruct. -
nnum_svm_args
public static void nnum_svm_args(long struct, int value) Sets the specified value to thenum_svm_argsfield of the specifiedstruct. -
nnum_exec_infos
public static void nnum_exec_infos(long struct, int value) Sets the specified value to thenum_exec_infosfield 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
-