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
CUDA_RESOURCE_VIEW_DESC structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_RESOURCE_VIEW_DESC.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
long |
depth()
Returns the value of the
depth field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
depth(long value)
Sets the specified value to the
depth field. |
int |
firstLayer()
Returns the value of the
firstLayer field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
firstLayer(int value)
Sets the specified value to the
firstLayer field. |
int |
firstMipmapLevel()
Returns the value of the
firstMipmapLevel field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
firstMipmapLevel(int value)
Sets the specified value to the
firstMipmapLevel field. |
int |
format()
Returns the value of the
format field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
format(int value)
Sets the specified value to the
format field. |
long |
height()
Returns the value of the
height field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
height(long value)
Sets the specified value to the
height field. |
int |
lastLayer()
Returns the value of the
lastLayer field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
lastLayer(int value)
Sets the specified value to the
lastLayer field. |
int |
lastMipmapLevel()
Returns the value of the
lastMipmapLevel field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
lastMipmapLevel(int value)
Sets the specified value to the
lastMipmapLevel field. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
long |
width()
Returns the value of the
width field. |
CUDA_RESOURCE_VIEW_DESC.Buffer |
width(long value)
Sets the specified value to the
width field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_RESOURCE_VIEW_DESC.Buffer instance 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
by CUDA_RESOURCE_VIEW_DESC.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int format()
format field.public long width()
width field.public long height()
height field.public long depth()
depth field.public int firstMipmapLevel()
firstMipmapLevel field.public int lastMipmapLevel()
lastMipmapLevel field.public int firstLayer()
firstLayer field.public int lastLayer()
lastLayer field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_RESOURCE_VIEW_DESC.Buffer format(int value)
format field.public CUDA_RESOURCE_VIEW_DESC.Buffer width(long value)
width field.public CUDA_RESOURCE_VIEW_DESC.Buffer height(long value)
height field.public CUDA_RESOURCE_VIEW_DESC.Buffer depth(long value)
depth field.public CUDA_RESOURCE_VIEW_DESC.Buffer firstMipmapLevel(int value)
firstMipmapLevel field.public CUDA_RESOURCE_VIEW_DESC.Buffer lastMipmapLevel(int value)
lastMipmapLevel field.public CUDA_RESOURCE_VIEW_DESC.Buffer firstLayer(int value)
firstLayer field.public CUDA_RESOURCE_VIEW_DESC.Buffer lastLayer(int value)
lastLayer field.public CUDA_RESOURCE_VIEW_DESC.Buffer reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_RESOURCE_VIEW_DESC.Buffer reserved(int index, int value)
reserved field.Copyright LWJGL. All Rights Reserved. License terms.