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