public static class CUDA_RESOURCE_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer> implements org.lwjgl.system.NativeResource
CUDA_RESOURCE_DESC structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_RESOURCE_DESC.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
flags()
Returns the value of the
flags field. |
CUDA_RESOURCE_DESC.Buffer |
flags(int value)
Sets the specified value to the
flags field. |
long |
res_array_hArray()
Returns the value of the
res.array.hArray field. |
CUDA_RESOURCE_DESC.Buffer |
res_array_hArray(long value)
Sets the specified value to the
res.array.hArray field. |
long |
res_linear_devPtr()
Returns the value of the
res.linear.devPtr field. |
CUDA_RESOURCE_DESC.Buffer |
res_linear_devPtr(long value)
Sets the specified value to the
res.linear.devPtr field. |
int |
res_linear_format()
Returns the value of the
res.linear.format field. |
CUDA_RESOURCE_DESC.Buffer |
res_linear_format(int value)
Sets the specified value to the
res.linear.format field. |
int |
res_linear_numChannels()
Returns the value of the
res.linear.numChannels field. |
CUDA_RESOURCE_DESC.Buffer |
res_linear_numChannels(int value)
Sets the specified value to the
res.linear.numChannels field. |
long |
res_linear_sizeInBytes()
Returns the value of the
res.linear.sizeInBytes field. |
CUDA_RESOURCE_DESC.Buffer |
res_linear_sizeInBytes(long value)
Sets the specified value to the
res.linear.sizeInBytes field. |
long |
res_mipmap_hMipmappedArray()
Returns the value of the
res.mipmap.hMipmappedArray field. |
CUDA_RESOURCE_DESC.Buffer |
res_mipmap_hMipmappedArray(long value)
Sets the specified value to the
res.mipmap.hMipmappedArray field. |
long |
res_pitch2D_devPtr()
Returns the value of the
res.pitch2D.devPtr field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_devPtr(long value)
Sets the specified value to the
res.pitch2D.devPtr field. |
int |
res_pitch2D_format()
Returns the value of the
res.pitch2D.format field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_format(int value)
Sets the specified value to the
res.pitch2D.format field. |
long |
res_pitch2D_height()
Returns the value of the
res.pitch2D.height field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_height(long value)
Sets the specified value to the
res.pitch2D.height field. |
int |
res_pitch2D_numChannels()
Returns the value of the
res.pitch2D.numChannels field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_numChannels(int value)
Sets the specified value to the
res.pitch2D.numChannels field. |
long |
res_pitch2D_pitchInBytes()
Returns the value of the
res.pitch2D.pitchInBytes field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_pitchInBytes(long value)
Sets the specified value to the
res.pitch2D.pitchInBytes field. |
long |
res_pitch2D_width()
Returns the value of the
res.pitch2D.width field. |
CUDA_RESOURCE_DESC.Buffer |
res_pitch2D_width(long value)
Sets the specified value to the
res.pitch2D.width field. |
java.nio.IntBuffer |
res_reserved_reserved()
Returns a
IntBuffer view of the res.reserved.reserved field. |
int |
res_reserved_reserved(int index)
Returns the value at the specified index of the
res.reserved.reserved field. |
CUDA_RESOURCE_DESC.Buffer |
res_reserved_reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the res.reserved.reserved field. |
CUDA_RESOURCE_DESC.Buffer |
res_reserved_reserved(int index,
int value)
Sets the specified value at the specified index of the
res.reserved.reserved field. |
int |
resType()
Returns the value of the
resType field. |
CUDA_RESOURCE_DESC.Buffer |
resType(int value)
Sets the specified value to the
resType field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_RESOURCE_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_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 resType()
resType field.public long res_array_hArray()
res.array.hArray field.public long res_mipmap_hMipmappedArray()
res.mipmap.hMipmappedArray field.public long res_linear_devPtr()
res.linear.devPtr field.public int res_linear_format()
res.linear.format field.public int res_linear_numChannels()
res.linear.numChannels field.public long res_linear_sizeInBytes()
res.linear.sizeInBytes field.public long res_pitch2D_devPtr()
res.pitch2D.devPtr field.public int res_pitch2D_format()
res.pitch2D.format field.public int res_pitch2D_numChannels()
res.pitch2D.numChannels field.public long res_pitch2D_width()
res.pitch2D.width field.public long res_pitch2D_height()
res.pitch2D.height field.public long res_pitch2D_pitchInBytes()
res.pitch2D.pitchInBytes field.public java.nio.IntBuffer res_reserved_reserved()
IntBuffer view of the res.reserved.reserved field.public int res_reserved_reserved(int index)
res.reserved.reserved field.public int flags()
flags field.public CUDA_RESOURCE_DESC.Buffer resType(int value)
resType field.public CUDA_RESOURCE_DESC.Buffer res_array_hArray(long value)
res.array.hArray field.public CUDA_RESOURCE_DESC.Buffer res_mipmap_hMipmappedArray(long value)
res.mipmap.hMipmappedArray field.public CUDA_RESOURCE_DESC.Buffer res_linear_devPtr(long value)
res.linear.devPtr field.public CUDA_RESOURCE_DESC.Buffer res_linear_format(int value)
res.linear.format field.public CUDA_RESOURCE_DESC.Buffer res_linear_numChannels(int value)
res.linear.numChannels field.public CUDA_RESOURCE_DESC.Buffer res_linear_sizeInBytes(long value)
res.linear.sizeInBytes field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_devPtr(long value)
res.pitch2D.devPtr field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_format(int value)
res.pitch2D.format field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_numChannels(int value)
res.pitch2D.numChannels field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_width(long value)
res.pitch2D.width field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_height(long value)
res.pitch2D.height field.public CUDA_RESOURCE_DESC.Buffer res_pitch2D_pitchInBytes(long value)
res.pitch2D.pitchInBytes field.public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(java.nio.IntBuffer value)
IntBuffer to the res.reserved.reserved field.public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(int index, int value)
res.reserved.reserved field.public CUDA_RESOURCE_DESC.Buffer flags(int value)
flags field.Copyright LWJGL. All Rights Reserved. License terms.