Package org.lwjgl.cuda
Class CUDA_MEMCPY3D.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D,CUDA_MEMCPY3D.Buffer>
-
- org.lwjgl.cuda.CUDA_MEMCPY3D.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_MEMCPY3D>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_MEMCPY3D
public static class CUDA_MEMCPY3D.Buffer extends org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D,CUDA_MEMCPY3D.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_MEMCPY3Dstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longDepth()CUDA_MEMCPY3D.BufferDepth(long value)Sets the specified value to theCUDA_MEMCPY3D.Depth()field.longdstArray()CUDA_MEMCPY3D.BufferdstArray(long value)Sets the specified value to theCUDA_MEMCPY3D.dstArray()field.longdstDevice()CUDA_MEMCPY3D.BufferdstDevice(long value)Sets the specified value to theCUDA_MEMCPY3D.dstDevice()field.longdstHeight()CUDA_MEMCPY3D.BufferdstHeight(long value)Sets the specified value to theCUDA_MEMCPY3D.dstHeight()field.java.nio.ByteBufferdstHost(int capacity)CUDA_MEMCPY3D.BufferdstHost(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D.dstHost(int)field.longdstLOD()CUDA_MEMCPY3D.BufferdstLOD(long value)Sets the specified value to theCUDA_MEMCPY3D.dstLOD()field.intdstMemoryType()CUDA_MEMCPY3D.BufferdstMemoryType(int value)Sets the specified value to theCUDA_MEMCPY3D.dstMemoryType()field.longdstPitch()CUDA_MEMCPY3D.BufferdstPitch(long value)Sets the specified value to theCUDA_MEMCPY3D.dstPitch()field.longdstXInBytes()CUDA_MEMCPY3D.BufferdstXInBytes(long value)Sets the specified value to theCUDA_MEMCPY3D.dstXInBytes()field.longdstY()CUDA_MEMCPY3D.BufferdstY(long value)Sets the specified value to theCUDA_MEMCPY3D.dstY()field.longdstZ()CUDA_MEMCPY3D.BufferdstZ(long value)Sets the specified value to theCUDA_MEMCPY3D.dstZ()field.longHeight()CUDA_MEMCPY3D.BufferHeight(long value)Sets the specified value to theCUDA_MEMCPY3D.Height()field.longreserved0()CUDA_MEMCPY3D.Bufferreserved0(long value)Sets the specified value to theCUDA_MEMCPY3D.reserved0()field.longreserved1()CUDA_MEMCPY3D.Bufferreserved1(long value)Sets the specified value to theCUDA_MEMCPY3D.reserved1()field.longsrcArray()CUDA_MEMCPY3D.BuffersrcArray(long value)Sets the specified value to theCUDA_MEMCPY3D.srcArray()field.longsrcDevice()CUDA_MEMCPY3D.BuffersrcDevice(long value)Sets the specified value to theCUDA_MEMCPY3D.srcDevice()field.longsrcHeight()CUDA_MEMCPY3D.BuffersrcHeight(long value)Sets the specified value to theCUDA_MEMCPY3D.srcHeight()field.java.nio.ByteBuffersrcHost(int capacity)CUDA_MEMCPY3D.BuffersrcHost(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D.srcHost(int)field.longsrcLOD()CUDA_MEMCPY3D.BuffersrcLOD(long value)Sets the specified value to theCUDA_MEMCPY3D.srcLOD()field.intsrcMemoryType()CUDA_MEMCPY3D.BuffersrcMemoryType(int value)Sets the specified value to theCUDA_MEMCPY3D.srcMemoryType()field.longsrcPitch()CUDA_MEMCPY3D.BuffersrcPitch(long value)Sets the specified value to theCUDA_MEMCPY3D.srcPitch()field.longsrcXInBytes()CUDA_MEMCPY3D.BuffersrcXInBytes(long value)Sets the specified value to theCUDA_MEMCPY3D.srcXInBytes()field.longsrcY()CUDA_MEMCPY3D.BuffersrcY(long value)Sets the specified value to theCUDA_MEMCPY3D.srcY()field.longsrcZ()CUDA_MEMCPY3D.BuffersrcZ(long value)Sets the specified value to theCUDA_MEMCPY3D.srcZ()field.longWidthInBytes()CUDA_MEMCPY3D.BufferWidthInBytes(long value)Sets the specified value to theCUDA_MEMCPY3D.WidthInBytes()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_MEMCPY3D.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_MEMCPY3D.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
-
srcXInBytes
public long srcXInBytes()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcXInBytes()field.
-
srcY
public long srcY()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcY()field.
-
srcZ
public long srcZ()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcZ()field.
-
srcLOD
public long srcLOD()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcLOD()field.
-
srcMemoryType
public int srcMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcMemoryType()field.
-
srcHost
@Nullable public java.nio.ByteBuffer srcHost(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theCUDA_MEMCPY3D.srcHost(int)field.
-
srcDevice
public long srcDevice()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcDevice()field.
-
srcArray
public long srcArray()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcArray()field.
-
reserved0
public long reserved0()
- Returns:
- the value of the
CUDA_MEMCPY3D.reserved0()field.
-
srcPitch
public long srcPitch()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcPitch()field.
-
srcHeight
public long srcHeight()
- Returns:
- the value of the
CUDA_MEMCPY3D.srcHeight()field.
-
dstXInBytes
public long dstXInBytes()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstXInBytes()field.
-
dstY
public long dstY()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstY()field.
-
dstZ
public long dstZ()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstZ()field.
-
dstLOD
public long dstLOD()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstLOD()field.
-
dstMemoryType
public int dstMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstMemoryType()field.
-
dstHost
@Nullable public java.nio.ByteBuffer dstHost(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theCUDA_MEMCPY3D.dstHost(int)field.
-
dstDevice
public long dstDevice()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstDevice()field.
-
dstArray
public long dstArray()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstArray()field.
-
reserved1
public long reserved1()
- Returns:
- the value of the
CUDA_MEMCPY3D.reserved1()field.
-
dstPitch
public long dstPitch()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstPitch()field.
-
dstHeight
public long dstHeight()
- Returns:
- the value of the
CUDA_MEMCPY3D.dstHeight()field.
-
WidthInBytes
public long WidthInBytes()
- Returns:
- the value of the
CUDA_MEMCPY3D.WidthInBytes()field.
-
Height
public long Height()
- Returns:
- the value of the
CUDA_MEMCPY3D.Height()field.
-
Depth
public long Depth()
- Returns:
- the value of the
CUDA_MEMCPY3D.Depth()field.
-
srcXInBytes
public CUDA_MEMCPY3D.Buffer srcXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcXInBytes()field.
-
srcY
public CUDA_MEMCPY3D.Buffer srcY(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcY()field.
-
srcZ
public CUDA_MEMCPY3D.Buffer srcZ(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcZ()field.
-
srcLOD
public CUDA_MEMCPY3D.Buffer srcLOD(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcLOD()field.
-
srcMemoryType
public CUDA_MEMCPY3D.Buffer srcMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY3D.srcMemoryType()field.
-
srcHost
public CUDA_MEMCPY3D.Buffer srcHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D.srcHost(int)field.
-
srcDevice
public CUDA_MEMCPY3D.Buffer srcDevice(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcDevice()field.
-
srcArray
public CUDA_MEMCPY3D.Buffer srcArray(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcArray()field.
-
reserved0
public CUDA_MEMCPY3D.Buffer reserved0(long value)
Sets the specified value to theCUDA_MEMCPY3D.reserved0()field.
-
srcPitch
public CUDA_MEMCPY3D.Buffer srcPitch(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcPitch()field.
-
srcHeight
public CUDA_MEMCPY3D.Buffer srcHeight(long value)
Sets the specified value to theCUDA_MEMCPY3D.srcHeight()field.
-
dstXInBytes
public CUDA_MEMCPY3D.Buffer dstXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstXInBytes()field.
-
dstY
public CUDA_MEMCPY3D.Buffer dstY(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstY()field.
-
dstZ
public CUDA_MEMCPY3D.Buffer dstZ(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstZ()field.
-
dstLOD
public CUDA_MEMCPY3D.Buffer dstLOD(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstLOD()field.
-
dstMemoryType
public CUDA_MEMCPY3D.Buffer dstMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY3D.dstMemoryType()field.
-
dstHost
public CUDA_MEMCPY3D.Buffer dstHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D.dstHost(int)field.
-
dstDevice
public CUDA_MEMCPY3D.Buffer dstDevice(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstDevice()field.
-
dstArray
public CUDA_MEMCPY3D.Buffer dstArray(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstArray()field.
-
reserved1
public CUDA_MEMCPY3D.Buffer reserved1(long value)
Sets the specified value to theCUDA_MEMCPY3D.reserved1()field.
-
dstPitch
public CUDA_MEMCPY3D.Buffer dstPitch(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstPitch()field.
-
dstHeight
public CUDA_MEMCPY3D.Buffer dstHeight(long value)
Sets the specified value to theCUDA_MEMCPY3D.dstHeight()field.
-
WidthInBytes
public CUDA_MEMCPY3D.Buffer WidthInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D.WidthInBytes()field.
-
Height
public CUDA_MEMCPY3D.Buffer Height(long value)
Sets the specified value to theCUDA_MEMCPY3D.Height()field.
-
Depth
public CUDA_MEMCPY3D.Buffer Depth(long value)
Sets the specified value to theCUDA_MEMCPY3D.Depth()field.
-
-