Package org.lwjgl.cuda
Class CUDA_MEMCPY2D.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_MEMCPY2D,CUDA_MEMCPY2D.Buffer>
-
- org.lwjgl.cuda.CUDA_MEMCPY2D.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_MEMCPY2D>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_MEMCPY2D
public static class CUDA_MEMCPY2D.Buffer extends org.lwjgl.system.StructBuffer<CUDA_MEMCPY2D,CUDA_MEMCPY2D.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_MEMCPY2Dstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdstArray()CUDA_MEMCPY2D.BufferdstArray(long value)Sets the specified value to theCUDA_MEMCPY2D.dstArray()field.longdstDevice()CUDA_MEMCPY2D.BufferdstDevice(long value)Sets the specified value to theCUDA_MEMCPY2D.dstDevice()field.java.nio.ByteBufferdstHost(int capacity)CUDA_MEMCPY2D.BufferdstHost(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theCUDA_MEMCPY2D.dstHost(int)field.intdstMemoryType()CUDA_MEMCPY2D.BufferdstMemoryType(int value)Sets the specified value to theCUDA_MEMCPY2D.dstMemoryType()field.longdstPitch()CUDA_MEMCPY2D.BufferdstPitch(long value)Sets the specified value to theCUDA_MEMCPY2D.dstPitch()field.longdstXInBytes()CUDA_MEMCPY2D.BufferdstXInBytes(long value)Sets the specified value to theCUDA_MEMCPY2D.dstXInBytes()field.longdstY()CUDA_MEMCPY2D.BufferdstY(long value)Sets the specified value to theCUDA_MEMCPY2D.dstY()field.longHeight()CUDA_MEMCPY2D.BufferHeight(long value)Sets the specified value to theCUDA_MEMCPY2D.Height()field.longsrcArray()CUDA_MEMCPY2D.BuffersrcArray(long value)Sets the specified value to theCUDA_MEMCPY2D.srcArray()field.longsrcDevice()CUDA_MEMCPY2D.BuffersrcDevice(long value)Sets the specified value to theCUDA_MEMCPY2D.srcDevice()field.java.nio.ByteBuffersrcHost(int capacity)CUDA_MEMCPY2D.BuffersrcHost(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theCUDA_MEMCPY2D.srcHost(int)field.intsrcMemoryType()CUDA_MEMCPY2D.BuffersrcMemoryType(int value)Sets the specified value to theCUDA_MEMCPY2D.srcMemoryType()field.longsrcPitch()CUDA_MEMCPY2D.BuffersrcPitch(long value)Sets the specified value to theCUDA_MEMCPY2D.srcPitch()field.longsrcXInBytes()CUDA_MEMCPY2D.BuffersrcXInBytes(long value)Sets the specified value to theCUDA_MEMCPY2D.srcXInBytes()field.longsrcY()CUDA_MEMCPY2D.BuffersrcY(long value)Sets the specified value to theCUDA_MEMCPY2D.srcY()field.longWidthInBytes()CUDA_MEMCPY2D.BufferWidthInBytes(long value)Sets the specified value to theCUDA_MEMCPY2D.WidthInBytes()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_MEMCPY2D.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_MEMCPY2D.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_MEMCPY2D.srcXInBytes()field.
-
srcY
public long srcY()
- Returns:
- the value of the
CUDA_MEMCPY2D.srcY()field.
-
srcMemoryType
public int srcMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY2D.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_MEMCPY2D.srcHost(int)field.
-
srcDevice
public long srcDevice()
- Returns:
- the value of the
CUDA_MEMCPY2D.srcDevice()field.
-
srcArray
public long srcArray()
- Returns:
- the value of the
CUDA_MEMCPY2D.srcArray()field.
-
srcPitch
public long srcPitch()
- Returns:
- the value of the
CUDA_MEMCPY2D.srcPitch()field.
-
dstXInBytes
public long dstXInBytes()
- Returns:
- the value of the
CUDA_MEMCPY2D.dstXInBytes()field.
-
dstY
public long dstY()
- Returns:
- the value of the
CUDA_MEMCPY2D.dstY()field.
-
dstMemoryType
public int dstMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY2D.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_MEMCPY2D.dstHost(int)field.
-
dstDevice
public long dstDevice()
- Returns:
- the value of the
CUDA_MEMCPY2D.dstDevice()field.
-
dstArray
public long dstArray()
- Returns:
- the value of the
CUDA_MEMCPY2D.dstArray()field.
-
dstPitch
public long dstPitch()
- Returns:
- the value of the
CUDA_MEMCPY2D.dstPitch()field.
-
WidthInBytes
public long WidthInBytes()
- Returns:
- the value of the
CUDA_MEMCPY2D.WidthInBytes()field.
-
Height
public long Height()
- Returns:
- the value of the
CUDA_MEMCPY2D.Height()field.
-
srcXInBytes
public CUDA_MEMCPY2D.Buffer srcXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY2D.srcXInBytes()field.
-
srcY
public CUDA_MEMCPY2D.Buffer srcY(long value)
Sets the specified value to theCUDA_MEMCPY2D.srcY()field.
-
srcMemoryType
public CUDA_MEMCPY2D.Buffer srcMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY2D.srcMemoryType()field.
-
srcHost
public CUDA_MEMCPY2D.Buffer srcHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY2D.srcHost(int)field.
-
srcDevice
public CUDA_MEMCPY2D.Buffer srcDevice(long value)
Sets the specified value to theCUDA_MEMCPY2D.srcDevice()field.
-
srcArray
public CUDA_MEMCPY2D.Buffer srcArray(long value)
Sets the specified value to theCUDA_MEMCPY2D.srcArray()field.
-
srcPitch
public CUDA_MEMCPY2D.Buffer srcPitch(long value)
Sets the specified value to theCUDA_MEMCPY2D.srcPitch()field.
-
dstXInBytes
public CUDA_MEMCPY2D.Buffer dstXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY2D.dstXInBytes()field.
-
dstY
public CUDA_MEMCPY2D.Buffer dstY(long value)
Sets the specified value to theCUDA_MEMCPY2D.dstY()field.
-
dstMemoryType
public CUDA_MEMCPY2D.Buffer dstMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY2D.dstMemoryType()field.
-
dstHost
public CUDA_MEMCPY2D.Buffer dstHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY2D.dstHost(int)field.
-
dstDevice
public CUDA_MEMCPY2D.Buffer dstDevice(long value)
Sets the specified value to theCUDA_MEMCPY2D.dstDevice()field.
-
dstArray
public CUDA_MEMCPY2D.Buffer dstArray(long value)
Sets the specified value to theCUDA_MEMCPY2D.dstArray()field.
-
dstPitch
public CUDA_MEMCPY2D.Buffer dstPitch(long value)
Sets the specified value to theCUDA_MEMCPY2D.dstPitch()field.
-
WidthInBytes
public CUDA_MEMCPY2D.Buffer WidthInBytes(long value)
Sets the specified value to theCUDA_MEMCPY2D.WidthInBytes()field.
-
Height
public CUDA_MEMCPY2D.Buffer Height(long value)
Sets the specified value to theCUDA_MEMCPY2D.Height()field.
-
-