Package org.lwjgl.opencl
Class CLMutableDispatchExecInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class CLMutableDispatchExecInfoKHR
extends Struct<CLMutableDispatchExecInfoKHR>
implements NativeResource
struct cl_mutable_dispatch_exec_info_khr {
cl_uint param_name;
size_t param_value_size;
void const * param_value;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCLMutableDispatchExecInfoKHR(ByteBuffer container) Creates aCLMutableDispatchExecInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLMutableDispatchExecInfoKHRcalloc()Returns a newCLMutableDispatchExecInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLMutableDispatchExecInfoKHRcalloc(MemoryStack stack) Returns a newCLMutableDispatchExecInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLMutableDispatchExecInfoKHRcreate()Returns a newCLMutableDispatchExecInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withBufferUtils.static CLMutableDispatchExecInfoKHRcreate(long address) Returns a newCLMutableDispatchExecInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aCLMutableDispatchExecInfoKHR.Bufferinstance at the specified memory.static @Nullable CLMutableDispatchExecInfoKHRcreateSafe(long address) static @Nullable CLMutableDispatchExecInfoKHR.BuffercreateSafe(long address, int capacity) static CLMutableDispatchExecInfoKHRmalloc()Returns a newCLMutableDispatchExecInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static CLMutableDispatchExecInfoKHRmalloc(MemoryStack stack) Returns a newCLMutableDispatchExecInfoKHRinstance allocated on the specifiedMemoryStack.static intnparam_name(long struct) Unsafe version ofparam_name().static voidnparam_name(long struct, int value) Unsafe version ofparam_name.static @Nullable ByteBuffernparam_value(long struct) Unsafe version ofparam_value.static voidnparam_value(long struct, @Nullable ByteBuffer value) Unsafe version ofparam_value.static longnparam_value_size(long struct) Unsafe version ofparam_value_size().static voidnparam_value_size(long struct, long value) Sets the specified value to theparam_value_sizefield of the specifiedstruct.intparam_name(int value) Sets the specified value to theparam_namefield.@Nullable ByteBufferparam_value(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto theparam_valuefield.longparam_value_size(long value) Sets the specified value to theparam_value_sizefield.set(int param_name, long param_value_size, @Nullable ByteBuffer param_value) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
PARAM_NAME
public static final int PARAM_NAMEThe struct member offsets. -
PARAM_VALUE_SIZE
public static final int PARAM_VALUE_SIZEThe struct member offsets. -
PARAM_VALUE
public static final int PARAM_VALUEThe struct member offsets.
-
-
Constructor Details
-
CLMutableDispatchExecInfoKHR
Creates aCLMutableDispatchExecInfoKHRinstance 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<CLMutableDispatchExecInfoKHR>
-
param_name
public int param_name()- Returns:
- the value of the
param_namefield.
-
param_value_size
public long param_value_size()- Returns:
- the value of the
param_value_sizefield.
-
param_value
- Returns:
- a
ByteBufferview of the data pointed to by theparam_valuefield.
-
param_name
Sets the specified value to theparam_namefield. -
param_value_size
Sets the specified value to theparam_value_sizefield. -
param_value
Sets the address of the specifiedByteBufferto theparam_valuefield. -
set
public CLMutableDispatchExecInfoKHR set(int param_name, long param_value_size, @Nullable ByteBuffer param_value) 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 newCLMutableDispatchExecInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLMutableDispatchExecInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLMutableDispatchExecInfoKHRinstance allocated withBufferUtils. -
create
Returns a newCLMutableDispatchExecInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLMutableDispatchExecInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCLMutableDispatchExecInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchExecInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLMutableDispatchExecInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nparam_name
public static int nparam_name(long struct) Unsafe version ofparam_name(). -
nparam_value_size
public static long nparam_value_size(long struct) Unsafe version ofparam_value_size(). -
nparam_value
Unsafe version ofparam_value. -
nparam_name
public static void nparam_name(long struct, int value) Unsafe version ofparam_name. -
nparam_value_size
public static void nparam_value_size(long struct, long value) Sets the specified value to theparam_value_sizefield of the specifiedstruct. -
nparam_value
Unsafe version ofparam_value.
-