Package org.lwjgl.cuda
Class CUkernelNodeAttrValue
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUkernelNodeAttrValue>
org.lwjgl.cuda.CUkernelNodeAttrValue
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUkernelNodeAttrValue
extends org.lwjgl.system.Struct<CUkernelNodeAttrValue>
implements org.lwjgl.system.NativeResource
Layout
union CUkernelNodeAttrValue {
CUaccessPolicyWindow accessPolicyWindow;
int cooperative;
}-
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 member offsets.static final intThe struct alignment in bytes.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
ConstructorsConstructorDescriptionCUkernelNodeAttrValue(ByteBuffer container) Creates aCUkernelNodeAttrValueinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyWindow(Consumer<CUaccessPolicyWindow> consumer) Passes theaccessPolicyWindowfield to the specifiedConsumer.Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindowfield.static CUkernelNodeAttrValuecalloc()Returns a newCUkernelNodeAttrValueinstance allocated withmemCalloc.static CUkernelNodeAttrValue.Buffercalloc(int capacity) Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemCalloc.static CUkernelNodeAttrValue.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUkernelNodeAttrValuecalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcooperative(int value) Sets the specified value to thecooperativefield.static CUkernelNodeAttrValuecreate()Returns a newCUkernelNodeAttrValueinstance allocated withBufferUtils.static CUkernelNodeAttrValue.Buffercreate(int capacity) Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withBufferUtils.static CUkernelNodeAttrValuecreate(long address) Returns a newCUkernelNodeAttrValueinstance for the specified memory address.static CUkernelNodeAttrValue.Buffercreate(long address, int capacity) Create aCUkernelNodeAttrValue.Bufferinstance at the specified memory.static @Nullable CUkernelNodeAttrValuecreateSafe(long address) static @Nullable CUkernelNodeAttrValue.BuffercreateSafe(long address, int capacity) static CUkernelNodeAttrValuemalloc()Returns a newCUkernelNodeAttrValueinstance allocated withmemAlloc.static CUkernelNodeAttrValue.Buffermalloc(int capacity) Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemAlloc.static CUkernelNodeAttrValue.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStack.static CUkernelNodeAttrValuemalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStack.static CUaccessPolicyWindownaccessPolicyWindow(long struct) Unsafe version ofaccessPolicyWindow().static voidnaccessPolicyWindow(long struct, CUaccessPolicyWindow value) Unsafe version ofaccessPolicyWindow.static intncooperative(long struct) Unsafe version ofcooperative().static voidncooperative(long struct, int value) Unsafe version ofcooperative.set(CUkernelNodeAttrValue src) Copies the specified struct data to this struct.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. -
ACCESSPOLICYWINDOW
public static final int ACCESSPOLICYWINDOWThe struct member offsets. -
COOPERATIVE
public static final int COOPERATIVEThe struct member offsets.
-
-
Constructor Details
-
CUkernelNodeAttrValue
Creates aCUkernelNodeAttrValueinstance 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<CUkernelNodeAttrValue>
-
accessPolicyWindow
- Returns:
- a
CUaccessPolicyWindowview of theaccessPolicyWindowfield.
-
cooperative
public int cooperative()- Returns:
- the value of the
cooperativefield.
-
accessPolicyWindow
Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindowfield. -
accessPolicyWindow
Passes theaccessPolicyWindowfield to the specifiedConsumer. -
cooperative
Sets the specified value to thecooperativefield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUkernelNodeAttrValueinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUkernelNodeAttrValueinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUkernelNodeAttrValueinstance allocated withBufferUtils. -
create
Returns a newCUkernelNodeAttrValueinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUkernelNodeAttrValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naccessPolicyWindow
Unsafe version ofaccessPolicyWindow(). -
ncooperative
public static int ncooperative(long struct) Unsafe version ofcooperative(). -
naccessPolicyWindow
Unsafe version ofaccessPolicyWindow. -
ncooperative
public static void ncooperative(long struct, int value) Unsafe version ofcooperative.
-