Package org.lwjgl.cuda
Class CUDA_ARRAY_SPARSE_PROPERTIES.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_ARRAY_SPARSE_PROPERTIES,CUDA_ARRAY_SPARSE_PROPERTIES.Buffer>
-
- org.lwjgl.cuda.CUDA_ARRAY_SPARSE_PROPERTIES.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_ARRAY_SPARSE_PROPERTIES>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_ARRAY_SPARSE_PROPERTIES
public static class CUDA_ARRAY_SPARSE_PROPERTIES.Buffer extends org.lwjgl.system.StructBuffer<CUDA_ARRAY_SPARSE_PROPERTIES,CUDA_ARRAY_SPARSE_PROPERTIES.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_ARRAY_SPARSE_PROPERTIESstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_ARRAY_SPARSE_PROPERTIES.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byCUDA_ARRAY_SPARSE_PROPERTIES.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
tileExtent_width
public int tileExtent_width()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_width()field.
-
tileExtent_height
public int tileExtent_height()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_height()field.
-
tileExtent_depth
public int tileExtent_depth()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_depth()field.
-
miptailFirstLevel
public int miptailFirstLevel()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.miptailFirstLevel()field.
-
miptailSize
public long miptailSize()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.miptailSize()field.
-
flags
public int flags()
- Returns:
- the value of the
CUDA_ARRAY_SPARSE_PROPERTIES.flags()field.
-
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.Buffer tileExtent_width(int value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_width()field.
-
tileExtent_height
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer tileExtent_height(int value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_height()field.
-
tileExtent_depth
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer tileExtent_depth(int value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.tileExtent_depth()field.
-
miptailFirstLevel
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer miptailFirstLevel(int value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.miptailFirstLevel()field.
-
miptailSize
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer miptailSize(long value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.miptailSize()field.
-
flags
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer flags(int value)
Sets the specified value to theCUDA_ARRAY_SPARSE_PROPERTIES.flags()field.
-
reserved
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_ARRAY_SPARSE_PROPERTIES.Buffer reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
-