Package org.lwjgl.cuda
Class CUDA_ARRAY_SPARSE_PROPERTIES
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_ARRAY_SPARSE_PROPERTIES
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_ARRAY_SPARSE_PROPERTIES extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCUDA array sparse properties.Layout
struct CUDA_ARRAY_SPARSE_PROPERTIES { struct { unsigned intwidth; unsigned intheight; unsigned intdepth; } tileExtent; unsigned intmiptailFirstLevel(); unsigned long longmiptailSize(); unsigned intflags(); unsigned int reserved[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_ARRAY_SPARSE_PROPERTIES.BufferAn array ofCUDA_ARRAY_SPARSE_PROPERTIESstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
MIPTAILFIRSTLEVEL
MIPTAILSIZE
RESERVEDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTILEEXTENT
TILEEXTENT_DEPTH
TILEEXTENT_HEIGHT
TILEEXTENT_WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CUDA_ARRAY_SPARSE_PROPERTIES(java.nio.ByteBuffer container)Creates aCUDA_ARRAY_SPARSE_PROPERTIESinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CUDA_ARRAY_SPARSE_PROPERTIEScalloc()Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemCalloc.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffercalloc(int capacity)Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemCalloc.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffercalloc(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.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffercreate(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.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffercreate(long address, int capacity)Create aCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance at the specified memory.static CUDA_ARRAY_SPARSE_PROPERTIEScreateSafe(long address)static CUDA_ARRAY_SPARSE_PROPERTIES.BuffercreateSafe(long address, int capacity)intflags()flags will either be zero orARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAILCUDA_ARRAY_SPARSE_PROPERTIESflags(int value)Sets the specified value to theflags()field.static CUDA_ARRAY_SPARSE_PROPERTIESmalloc()Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemAlloc.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffermalloc(int capacity)Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemAlloc.static CUDA_ARRAY_SPARSE_PROPERTIES.Buffermalloc(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()first mip level at which the mip tail beginsCUDA_ARRAY_SPARSE_PROPERTIESmiptailFirstLevel(int value)Sets the specified value to themiptailFirstLevel()field.longmiptailSize()total size of the mip tailCUDA_ARRAY_SPARSE_PROPERTIESmiptailSize(long value)Sets the specified value to themiptailSize()field.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 java.nio.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 voidnreserved(long struct, java.nio.IntBuffer value)Unsafe 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.java.nio.IntBufferreserved()intreserved(int index)CUDA_ARRAY_SPARSE_PROPERTIESreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.CUDA_ARRAY_SPARSE_PROPERTIESreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.CUDA_ARRAY_SPARSE_PROPERTIESset(int tileExtent_width, int tileExtent_height, int tileExtent_depth, int miptailFirstLevel, long miptailSize, int flags, java.nio.IntBuffer reserved)Initializes this struct with the specified values.CUDA_ARRAY_SPARSE_PROPERTIESset(CUDA_ARRAY_SPARSE_PROPERTIES src)Copies the specified struct data to this struct.intsizeof()inttileExtent_depth()depth of sparse tile in elementsCUDA_ARRAY_SPARSE_PROPERTIEStileExtent_depth(int value)Sets the specified value to thetileExtent_depth()field.inttileExtent_height()height of sparse tile in elementsCUDA_ARRAY_SPARSE_PROPERTIEStileExtent_height(int value)Sets the specified value to thetileExtent_height()field.inttileExtent_width()width of sparse tile in elementsCUDA_ARRAY_SPARSE_PROPERTIEStileExtent_width(int value)Sets the specified value to thetileExtent_width()field.
-
-
-
Constructor Detail
-
CUDA_ARRAY_SPARSE_PROPERTIES
public CUDA_ARRAY_SPARSE_PROPERTIES(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
tileExtent_width
public int tileExtent_width()
width of sparse tile in elements
-
tileExtent_height
public int tileExtent_height()
height of sparse tile in elements
-
tileExtent_depth
public int tileExtent_depth()
depth of sparse tile in elements
-
miptailFirstLevel
public int miptailFirstLevel()
first mip level at which the mip tail begins
-
miptailSize
public long miptailSize()
total size of the mip tail
-
flags
public int flags()
flags will either be zero orARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
tileExtent_width
public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_width(int value)
Sets the specified value to thetileExtent_width()field.
-
tileExtent_height
public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_height(int value)
Sets the specified value to thetileExtent_height()field.
-
tileExtent_depth
public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_depth(int value)
Sets the specified value to thetileExtent_depth()field.
-
miptailFirstLevel
public CUDA_ARRAY_SPARSE_PROPERTIES miptailFirstLevel(int value)
Sets the specified value to themiptailFirstLevel()field.
-
miptailSize
public CUDA_ARRAY_SPARSE_PROPERTIES miptailSize(long value)
Sets the specified value to themiptailSize()field.
-
flags
public CUDA_ARRAY_SPARSE_PROPERTIES flags(int value)
Sets the specified value to theflags()field.
-
reserved
public CUDA_ARRAY_SPARSE_PROPERTIES reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_ARRAY_SPARSE_PROPERTIES reserved(int index, int value)
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, java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
-
set
public CUDA_ARRAY_SPARSE_PROPERTIES set(CUDA_ARRAY_SPARSE_PROPERTIES src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_ARRAY_SPARSE_PROPERTIES malloc()
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_ARRAY_SPARSE_PROPERTIES calloc()
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_ARRAY_SPARSE_PROPERTIES create()
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated withBufferUtils.
-
create
public static CUDA_ARRAY_SPARSE_PROPERTIES create(long address)
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_ARRAY_SPARSE_PROPERTIES createSafe(long address)
-
malloc
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer malloc(int capacity)
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer calloc(int capacity)
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer create(int capacity)
Returns a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer create(long address, int capacity)
Create aCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer createSafe(long address, int capacity)
-
malloc
public static CUDA_ARRAY_SPARSE_PROPERTIES malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_ARRAY_SPARSE_PROPERTIESinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_ARRAY_SPARSE_PROPERTIES calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
public static java.nio.IntBuffer nreserved(long struct)
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
public static void nreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, int value)Unsafe version ofreserved.
-
-