Package org.lwjgl.cuda
Class CUDA_ARRAY_SPARSE_PROPERTIES
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_ARRAY_SPARSE_PROPERTIES>
org.lwjgl.cuda.CUDA_ARRAY_SPARSE_PROPERTIES
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_ARRAY_SPARSE_PROPERTIES
extends org.lwjgl.system.Struct<CUDA_ARRAY_SPARSE_PROPERTIES>
implements org.lwjgl.system.NativeResource
Layout
struct CUDA_ARRAY_SPARSE_PROPERTIES {
struct {
unsigned int width;
unsigned int height;
unsigned int depth;
} tileExtent;
unsigned int miptailFirstLevel;
unsigned long long miptailSize;
unsigned int flags;
unsigned int reserved[4];
}-
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 member offsets.static final intThe struct size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUDA_ARRAY_SPARSE_PROPERTIES(ByteBuffer container) Creates aCUDA_ARRAY_SPARSE_PROPERTIESinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUDA_ARRAY_SPARSE_PROPERTIEScalloc()Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY_SPARSE_PROPERTIEScalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_ARRAY_SPARSE_PROPERTIEScreate()Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withBufferUtils.create(int capacity) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withBufferUtils.static CUDA_ARRAY_SPARSE_PROPERTIEScreate(long address) Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance for the specified memory address.create(long address, int capacity) Create aCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance at the specified memory.static @Nullable CUDA_ARRAY_SPARSE_PROPERTIEScreateSafe(long address) static @Nullable CUDA_ARRAY_SPARSE_PROPERTIES.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static CUDA_ARRAY_SPARSE_PROPERTIESmalloc()Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_ARRAY_SPARSE_PROPERTIESmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated on the specifiedMemoryStack.intmiptailFirstLevel(int value) Sets the specified value to themiptailFirstLevelfield.longmiptailSize(long value) Sets the specified value to themiptailSizefield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmiptailFirstLevel(long struct) Unsafe version ofmiptailFirstLevel().static voidnmiptailFirstLevel(long struct, int value) Unsafe version ofmiptailFirstLevel.static longnmiptailSize(long struct) Unsafe version ofmiptailSize().static voidnmiptailSize(long struct, long value) Unsafe version ofmiptailSize.static IntBuffernreserved(long struct) Unsafe version ofreserved().static intnreserved(long struct, int index) Unsafe version ofreserved.static voidnreserved(long struct, int index, int value) Unsafe version ofreserved.static voidUnsafe version ofreserved.static intntileExtent_depth(long struct) Unsafe version oftileExtent_depth().static voidntileExtent_depth(long struct, int value) Unsafe version oftileExtent_depth.static intntileExtent_height(long struct) Unsafe version oftileExtent_height().static voidntileExtent_height(long struct, int value) Unsafe version oftileExtent_height.static intntileExtent_width(long struct) Unsafe version oftileExtent_width().static voidntileExtent_width(long struct, int value) Unsafe version oftileExtent_width.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.set(int tileExtent_width, int tileExtent_height, int tileExtent_depth, int miptailFirstLevel, long miptailSize, int flags, IntBuffer reserved) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inttileExtent_depth(int value) Sets the specified value to thedepthfield.inttileExtent_height(int value) Sets the specified value to theheightfield.inttileExtent_width(int value) Sets the specified value to thewidthfield.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. -
TILEEXTENT
public static final int TILEEXTENTThe struct member offsets. -
TILEEXTENT_WIDTH
public static final int TILEEXTENT_WIDTHThe struct member offsets. -
TILEEXTENT_HEIGHT
public static final int TILEEXTENT_HEIGHTThe struct member offsets. -
TILEEXTENT_DEPTH
public static final int TILEEXTENT_DEPTHThe struct member offsets. -
MIPTAILFIRSTLEVEL
public static final int MIPTAILFIRSTLEVELThe struct member offsets. -
MIPTAILSIZE
public static final int MIPTAILSIZEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUDA_ARRAY_SPARSE_PROPERTIES
Creates aCUDA_ARRAY_SPARSE_PROPERTIESinstance 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<CUDA_ARRAY_SPARSE_PROPERTIES>
-
tileExtent_width
public int tileExtent_width()- Returns:
- the value of the
tileExtent.widthfield.
-
tileExtent_height
public int tileExtent_height()- Returns:
- the value of the
tileExtent.heightfield.
-
tileExtent_depth
public int tileExtent_depth()- Returns:
- the value of the
tileExtent.depthfield.
-
miptailFirstLevel
public int miptailFirstLevel()- Returns:
- the value of the
miptailFirstLevelfield.
-
miptailSize
public long miptailSize()- Returns:
- the value of the
miptailSizefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
tileExtent_width
Sets the specified value to thewidthfield. -
tileExtent_height
Sets the specified value to theheightfield. -
tileExtent_depth
Sets the specified value to thedepthfield. -
miptailFirstLevel
Sets the specified value to themiptailFirstLevelfield. -
miptailSize
Sets the specified value to themiptailSizefield. -
flags
Sets the specified value to theflagsfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
set
public CUDA_ARRAY_SPARSE_PROPERTIES set(int tileExtent_width, int tileExtent_height, int tileExtent_depth, int miptailFirstLevel, long miptailSize, int flags, IntBuffer reserved) 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 newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withBufferUtils. -
create
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntileExtent_width
public static int ntileExtent_width(long struct) Unsafe version oftileExtent_width(). -
ntileExtent_height
public static int ntileExtent_height(long struct) Unsafe version oftileExtent_height(). -
ntileExtent_depth
public static int ntileExtent_depth(long struct) Unsafe version oftileExtent_depth(). -
nmiptailFirstLevel
public static int nmiptailFirstLevel(long struct) Unsafe version ofmiptailFirstLevel(). -
nmiptailSize
public static long nmiptailSize(long struct) Unsafe version ofmiptailSize(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nreserved
Unsafe version ofreserved(). -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved. -
ntileExtent_width
public static void ntileExtent_width(long struct, int value) Unsafe version oftileExtent_width. -
ntileExtent_height
public static void ntileExtent_height(long struct, int value) Unsafe version oftileExtent_height. -
ntileExtent_depth
public static void ntileExtent_depth(long struct, int value) Unsafe version oftileExtent_depth. -
nmiptailFirstLevel
public static void nmiptailFirstLevel(long struct, int value) Unsafe version ofmiptailFirstLevel. -
nmiptailSize
public static void nmiptailSize(long struct, long value) Unsafe version ofmiptailSize. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nreserved
Unsafe version ofreserved. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved.
-