Package org.lwjgl.cuda
Class CUDA_ARRAY3D_DESCRIPTOR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_ARRAY3D_DESCRIPTOR,CUDA_ARRAY3D_DESCRIPTOR.Buffer>
-
- org.lwjgl.cuda.CUDA_ARRAY3D_DESCRIPTOR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_ARRAY3D_DESCRIPTOR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_ARRAY3D_DESCRIPTOR
public static class CUDA_ARRAY3D_DESCRIPTOR.Buffer extends org.lwjgl.system.StructBuffer<CUDA_ARRAY3D_DESCRIPTOR,CUDA_ARRAY3D_DESCRIPTOR.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_ARRAY3D_DESCRIPTORstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longDepth()CUDA_ARRAY3D_DESCRIPTOR.BufferDepth(long value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Depth()field.intFlags()CUDA_ARRAY3D_DESCRIPTOR.BufferFlags(int value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Flags()field.intFormat()CUDA_ARRAY3D_DESCRIPTOR.BufferFormat(int value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Format()field.longHeight()CUDA_ARRAY3D_DESCRIPTOR.BufferHeight(long value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Height()field.intNumChannels()CUDA_ARRAY3D_DESCRIPTOR.BufferNumChannels(int value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.NumChannels()field.longWidth()CUDA_ARRAY3D_DESCRIPTOR.BufferWidth(long value)Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Width()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_ARRAY3D_DESCRIPTOR.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_ARRAY3D_DESCRIPTOR.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
-
Width
public long Width()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.Width()field.
-
Height
public long Height()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.Height()field.
-
Depth
public long Depth()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.Depth()field.
-
Format
public int Format()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.Format()field.
-
NumChannels
public int NumChannels()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.NumChannels()field.
-
Flags
public int Flags()
- Returns:
- the value of the
CUDA_ARRAY3D_DESCRIPTOR.Flags()field.
-
Width
public CUDA_ARRAY3D_DESCRIPTOR.Buffer Width(long value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Width()field.
-
Height
public CUDA_ARRAY3D_DESCRIPTOR.Buffer Height(long value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Height()field.
-
Depth
public CUDA_ARRAY3D_DESCRIPTOR.Buffer Depth(long value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Depth()field.
-
Format
public CUDA_ARRAY3D_DESCRIPTOR.Buffer Format(int value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Format()field.
-
NumChannels
public CUDA_ARRAY3D_DESCRIPTOR.Buffer NumChannels(int value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.NumChannels()field.
-
Flags
public CUDA_ARRAY3D_DESCRIPTOR.Buffer Flags(int value)
Sets the specified value to theCUDA_ARRAY3D_DESCRIPTOR.Flags()field.
-
-