Package org.lwjgl.cuda
Class CUDA_RESOURCE_DESC.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer>
-
- org.lwjgl.cuda.CUDA_RESOURCE_DESC.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_RESOURCE_DESC>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_RESOURCE_DESC
public static class CUDA_RESOURCE_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_RESOURCE_DESCstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_RESOURCE_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_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
-
resType
public int resType()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.resType()field.
-
res_array_hArray
public long res_array_hArray()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_array_hArray()field.
-
res_mipmap_hMipmappedArray
public long res_mipmap_hMipmappedArray()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_mipmap_hMipmappedArray()field.
-
res_linear_devPtr
public long res_linear_devPtr()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_linear_devPtr()field.
-
res_linear_format
public int res_linear_format()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_linear_format()field.
-
res_linear_numChannels
public int res_linear_numChannels()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_linear_numChannels()field.
-
res_linear_sizeInBytes
public long res_linear_sizeInBytes()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_linear_sizeInBytes()field.
-
res_pitch2D_devPtr
public long res_pitch2D_devPtr()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_devPtr()field.
-
res_pitch2D_format
public int res_pitch2D_format()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_format()field.
-
res_pitch2D_numChannels
public int res_pitch2D_numChannels()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_numChannels()field.
-
res_pitch2D_width
public long res_pitch2D_width()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_width()field.
-
res_pitch2D_height
public long res_pitch2D_height()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_height()field.
-
res_pitch2D_pitchInBytes
public long res_pitch2D_pitchInBytes()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.res_pitch2D_pitchInBytes()field.
-
res_reserved_reserved
public java.nio.IntBuffer res_reserved_reserved()
- Returns:
- a
IntBufferview of theres.reserved.reservedfield.
-
res_reserved_reserved
public int res_reserved_reserved(int index)
- Returns:
- the value at the specified index of the
res.reserved.reservedfield.
-
flags
public int flags()
- Returns:
- the value of the
CUDA_RESOURCE_DESC.flags()field.
-
resType
public CUDA_RESOURCE_DESC.Buffer resType(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.resType()field.
-
res_array_hArray
public CUDA_RESOURCE_DESC.Buffer res_array_hArray(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_array_hArray()field.
-
res_mipmap_hMipmappedArray
public CUDA_RESOURCE_DESC.Buffer res_mipmap_hMipmappedArray(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_mipmap_hMipmappedArray()field.
-
res_linear_devPtr
public CUDA_RESOURCE_DESC.Buffer res_linear_devPtr(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_linear_devPtr()field.
-
res_linear_format
public CUDA_RESOURCE_DESC.Buffer res_linear_format(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_linear_format()field.
-
res_linear_numChannels
public CUDA_RESOURCE_DESC.Buffer res_linear_numChannels(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_linear_numChannels()field.
-
res_linear_sizeInBytes
public CUDA_RESOURCE_DESC.Buffer res_linear_sizeInBytes(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_linear_sizeInBytes()field.
-
res_pitch2D_devPtr
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_devPtr(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_devPtr()field.
-
res_pitch2D_format
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_format(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_format()field.
-
res_pitch2D_numChannels
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_numChannels(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_numChannels()field.
-
res_pitch2D_width
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_width(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_width()field.
-
res_pitch2D_height
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_height(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_height()field.
-
res_pitch2D_pitchInBytes
public CUDA_RESOURCE_DESC.Buffer res_pitch2D_pitchInBytes(long value)
Sets the specified value to theCUDA_RESOURCE_DESC.res_pitch2D_pitchInBytes()field.
-
res_reserved_reserved
public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
res_reserved_reserved
public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
flags
public CUDA_RESOURCE_DESC.Buffer flags(int value)
Sets the specified value to theCUDA_RESOURCE_DESC.flags()field.
-
-