Package org.lwjgl.cuda
Class CUDA_RESOURCE_VIEW_DESC.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_RESOURCE_VIEW_DESC,CUDA_RESOURCE_VIEW_DESC.Buffer>
-
- org.lwjgl.cuda.CUDA_RESOURCE_VIEW_DESC.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_RESOURCE_VIEW_DESC>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_RESOURCE_VIEW_DESC
public static class CUDA_RESOURCE_VIEW_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_RESOURCE_VIEW_DESC,CUDA_RESOURCE_VIEW_DESC.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_RESOURCE_VIEW_DESCstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_RESOURCE_VIEW_DESC.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_RESOURCE_VIEW_DESC.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
-
format
public int format()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.format()field.
-
width
public long width()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.width()field.
-
height
public long height()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.height()field.
-
depth
public long depth()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.depth()field.
-
firstMipmapLevel
public int firstMipmapLevel()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.firstMipmapLevel()field.
-
lastMipmapLevel
public int lastMipmapLevel()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.lastMipmapLevel()field.
-
firstLayer
public int firstLayer()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.firstLayer()field.
-
lastLayer
public int lastLayer()
- Returns:
- the value of the
CUDA_RESOURCE_VIEW_DESC.lastLayer()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.
-
format
public CUDA_RESOURCE_VIEW_DESC.Buffer format(int value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.format()field.
-
width
public CUDA_RESOURCE_VIEW_DESC.Buffer width(long value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.width()field.
-
height
public CUDA_RESOURCE_VIEW_DESC.Buffer height(long value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.height()field.
-
depth
public CUDA_RESOURCE_VIEW_DESC.Buffer depth(long value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.depth()field.
-
firstMipmapLevel
public CUDA_RESOURCE_VIEW_DESC.Buffer firstMipmapLevel(int value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.firstMipmapLevel()field.
-
lastMipmapLevel
public CUDA_RESOURCE_VIEW_DESC.Buffer lastMipmapLevel(int value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.lastMipmapLevel()field.
-
firstLayer
public CUDA_RESOURCE_VIEW_DESC.Buffer firstLayer(int value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.firstLayer()field.
-
lastLayer
public CUDA_RESOURCE_VIEW_DESC.Buffer lastLayer(int value)
Sets the specified value to theCUDA_RESOURCE_VIEW_DESC.lastLayer()field.
-
reserved
public CUDA_RESOURCE_VIEW_DESC.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_RESOURCE_VIEW_DESC.Buffer reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
-