Record Class CLMutableDispatchConfigKhr

java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLMutableDispatchConfigKhr
All Implemented Interfaces:
IPointer, ICLMutableDispatchConfigKhr

@ValueBasedCandidate @UnsafeConstructor public record CLMutableDispatchConfigKhr(@NotNull MemorySegment segment) extends Record implements ICLMutableDispatchConfigKhr

Represents a pointer to a cl_mutable_dispatch_config_khr structure in native memory.

Structure

typedef struct cl_mutable_dispatch_config_khr {
    cl_mutable_command_khr command;
    cl_uint numArgs;
    cl_uint numSvmArgs;
    cl_uint numExecInfos;
    cl_uint workDim;
    cl_mutable_dispatch_arg_khr const* argList;
    cl_mutable_dispatch_arg_khr const* argSvmList;
    cl_mutable_dispatch_exec_info_khr const* execInfoList;
    size_t const* globalWorkOffset;
    size_t const* globalWorkSize;
    size_t const* localWorkSize;
} cl_mutable_dispatch_config_khr;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also: