Package org.lwjgl.cuda
Class CUctxCreateParams
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUctxCreateParams>
org.lwjgl.cuda.CUctxCreateParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUctxCreateParams
extends org.lwjgl.system.Struct<CUctxCreateParams>
implements org.lwjgl.system.NativeResource
Layout
struct CUctxCreateParams {
CUexecAffinityParam * execAffinityParams;
unsigned int numExecAffinityParams;
CUctxCigParam * cigParams;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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
ConstructorsConstructorDescriptionCUctxCreateParams(ByteBuffer container) Creates aCUctxCreateParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUctxCreateParamscalloc()Returns a newCUctxCreateParamsinstance allocated withmemCalloc.static CUctxCreateParams.Buffercalloc(int capacity) Returns a newCUctxCreateParams.Bufferinstance allocated withmemCalloc.static CUctxCreateParams.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUctxCreateParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUctxCreateParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUctxCreateParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.@Nullable CUctxCigParamcigParams(@Nullable CUctxCigParam value) Sets the address of the specifiedCUctxCigParamto thecigParamsfield.static CUctxCreateParamscreate()Returns a newCUctxCreateParamsinstance allocated withBufferUtils.static CUctxCreateParams.Buffercreate(int capacity) Returns a newCUctxCreateParams.Bufferinstance allocated withBufferUtils.static CUctxCreateParamscreate(long address) Returns a newCUctxCreateParamsinstance for the specified memory address.static CUctxCreateParams.Buffercreate(long address, int capacity) Create aCUctxCreateParams.Bufferinstance at the specified memory.static @Nullable CUctxCreateParamscreateSafe(long address) static @Nullable CUctxCreateParams.BuffercreateSafe(long address, int capacity) @Nullable CUexecAffinityParam.BufferexecAffinityParams(@Nullable CUexecAffinityParam.Buffer value) Sets the address of the specifiedCUexecAffinityParam.Bufferto theexecAffinityParamsfield.static CUctxCreateParamsmalloc()Returns a newCUctxCreateParamsinstance allocated withmemAlloc.static CUctxCreateParams.Buffermalloc(int capacity) Returns a newCUctxCreateParams.Bufferinstance allocated withmemAlloc.static CUctxCreateParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUctxCreateParams.Bufferinstance allocated on the specifiedMemoryStack.static CUctxCreateParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUctxCreateParamsinstance allocated on the specifiedMemoryStack.static @Nullable CUctxCigParamncigParams(long struct) Unsafe version ofcigParams().static voidncigParams(long struct, @Nullable CUctxCigParam value) Unsafe version ofcigParams.static @Nullable CUexecAffinityParam.BuffernexecAffinityParams(long struct) Unsafe version ofexecAffinityParams().static voidnexecAffinityParams(long struct, @Nullable CUexecAffinityParam.Buffer value) Unsafe version ofexecAffinityParams.static intnnumExecAffinityParams(long struct) Unsafe version ofnumExecAffinityParams().static voidnnumExecAffinityParams(long struct, int value) Sets the specified value to thenumExecAffinityParamsfield of the specifiedstruct.intnumExecAffinityParams(int value) Sets the specified value to thenumExecAffinityParamsfield.set(CUctxCreateParams src) Copies the specified struct data to this struct.set(@Nullable CUexecAffinityParam.Buffer execAffinityParams, int numExecAffinityParams, @Nullable CUctxCigParam cigParams) Initializes this struct with the specified values.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
EXECAFFINITYPARAMS
public static final int EXECAFFINITYPARAMSThe struct member offsets. -
NUMEXECAFFINITYPARAMS
public static final int NUMEXECAFFINITYPARAMSThe struct member offsets. -
CIGPARAMS
public static final int CIGPARAMSThe struct member offsets.
-
-
Constructor Details
-
CUctxCreateParams
Creates aCUctxCreateParamsinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUctxCreateParams>
-
execAffinityParams
- Returns:
- a
CUexecAffinityParam.Bufferview of the struct array pointed to by theexecAffinityParamsfield.
-
numExecAffinityParams
public int numExecAffinityParams()- Returns:
- the value of the
numExecAffinityParamsfield.
-
cigParams
- Returns:
- a
CUctxCigParamview of the struct pointed to by thecigParamsfield.
-
execAffinityParams
Sets the address of the specifiedCUexecAffinityParam.Bufferto theexecAffinityParamsfield. -
numExecAffinityParams
Sets the specified value to thenumExecAffinityParamsfield. -
cigParams
Sets the address of the specifiedCUctxCigParamto thecigParamsfield. -
set
public CUctxCreateParams set(@Nullable CUexecAffinityParam.Buffer execAffinityParams, int numExecAffinityParams, @Nullable CUctxCigParam cigParams) 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 newCUctxCreateParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUctxCreateParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUctxCreateParamsinstance allocated withBufferUtils. -
create
Returns a newCUctxCreateParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUctxCreateParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUctxCreateParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUctxCreateParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUctxCreateParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUctxCreateParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUctxCreateParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUctxCreateParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUctxCreateParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nexecAffinityParams
Unsafe version ofexecAffinityParams(). -
nnumExecAffinityParams
public static int nnumExecAffinityParams(long struct) Unsafe version ofnumExecAffinityParams(). -
ncigParams
Unsafe version ofcigParams(). -
nexecAffinityParams
Unsafe version ofexecAffinityParams. -
nnumExecAffinityParams
public static void nnumExecAffinityParams(long struct, int value) Sets the specified value to thenumExecAffinityParamsfield of the specifiedstruct. -
ncigParams
Unsafe version ofcigParams.
-