public static class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC,CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer> implements org.lwjgl.system.NativeResource
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
CUDA_ARRAY3D_DESCRIPTOR |
arrayDesc()
Returns a
CUDA_ARRAY3D_DESCRIPTOR view of the arrayDesc field. |
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
arrayDesc(java.util.function.Consumer<CUDA_ARRAY3D_DESCRIPTOR> consumer)
Passes the
arrayDesc field to the specified Consumer. |
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
arrayDesc(CUDA_ARRAY3D_DESCRIPTOR value)
Copies the specified
CUDA_ARRAY3D_DESCRIPTOR to the arrayDesc field. |
int |
numLevels()
Returns the value of the
numLevels field. |
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
numLevels(int value)
Sets the specified value to the
numLevels field. |
long |
offset()
Returns the value of the
offset field. |
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
offset(long value)
Sets the specified value to the
offset 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_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_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_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_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 long offset()
offset field.public CUDA_ARRAY3D_DESCRIPTOR arrayDesc()
CUDA_ARRAY3D_DESCRIPTOR view of the arrayDesc field.public int numLevels()
numLevels field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer offset(long value)
offset field.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer arrayDesc(CUDA_ARRAY3D_DESCRIPTOR value)
CUDA_ARRAY3D_DESCRIPTOR to the arrayDesc field.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer arrayDesc(java.util.function.Consumer<CUDA_ARRAY3D_DESCRIPTOR> consumer)
arrayDesc field to the specified Consumer.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer numLevels(int value)
numLevels field.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC.Buffer reserved(int index, int value)
reserved field.Copyright LWJGL. All Rights Reserved. License terms.