Package org.lwjgl.cuda
Class CUDA_MEMCPY3D_PEER.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D_PEER,CUDA_MEMCPY3D_PEER.Buffer>
-
- org.lwjgl.cuda.CUDA_MEMCPY3D_PEER.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUDA_MEMCPY3D_PEER>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUDA_MEMCPY3D_PEER
public static class CUDA_MEMCPY3D_PEER.Buffer extends org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D_PEER,CUDA_MEMCPY3D_PEER.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUDA_MEMCPY3D_PEERstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_MEMCPY3D_PEER.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_PEER.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_PEER.srcXInBytes()field.
-
srcY
public long srcY()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcY()field.
-
srcZ
public long srcZ()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcZ()field.
-
srcLOD
public long srcLOD()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcLOD()field.
-
srcMemoryType
public int srcMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.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_PEER.srcHost(int)field.
-
srcDevice
public long srcDevice()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcDevice()field.
-
srcArray
public long srcArray()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcArray()field.
-
srcContext
public long srcContext()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcContext()field.
-
srcPitch
public long srcPitch()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcPitch()field.
-
srcHeight
public long srcHeight()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.srcHeight()field.
-
dstXInBytes
public long dstXInBytes()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstXInBytes()field.
-
dstY
public long dstY()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstY()field.
-
dstZ
public long dstZ()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstZ()field.
-
dstLOD
public long dstLOD()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstLOD()field.
-
dstMemoryType
public int dstMemoryType()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.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_PEER.dstHost(int)field.
-
dstDevice
public long dstDevice()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstDevice()field.
-
dstArray
public long dstArray()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstArray()field.
-
dstContext
public long dstContext()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstContext()field.
-
dstPitch
public long dstPitch()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstPitch()field.
-
dstHeight
public long dstHeight()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.dstHeight()field.
-
WidthInBytes
public long WidthInBytes()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.WidthInBytes()field.
-
Height
public long Height()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.Height()field.
-
Depth
public long Depth()
- Returns:
- the value of the
CUDA_MEMCPY3D_PEER.Depth()field.
-
srcXInBytes
public CUDA_MEMCPY3D_PEER.Buffer srcXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcXInBytes()field.
-
srcY
public CUDA_MEMCPY3D_PEER.Buffer srcY(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcY()field.
-
srcZ
public CUDA_MEMCPY3D_PEER.Buffer srcZ(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcZ()field.
-
srcLOD
public CUDA_MEMCPY3D_PEER.Buffer srcLOD(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcLOD()field.
-
srcMemoryType
public CUDA_MEMCPY3D_PEER.Buffer srcMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcMemoryType()field.
-
srcHost
public CUDA_MEMCPY3D_PEER.Buffer srcHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D_PEER.srcHost(int)field.
-
srcDevice
public CUDA_MEMCPY3D_PEER.Buffer srcDevice(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcDevice()field.
-
srcArray
public CUDA_MEMCPY3D_PEER.Buffer srcArray(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcArray()field.
-
srcContext
public CUDA_MEMCPY3D_PEER.Buffer srcContext(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcContext()field.
-
srcPitch
public CUDA_MEMCPY3D_PEER.Buffer srcPitch(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcPitch()field.
-
srcHeight
public CUDA_MEMCPY3D_PEER.Buffer srcHeight(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.srcHeight()field.
-
dstXInBytes
public CUDA_MEMCPY3D_PEER.Buffer dstXInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstXInBytes()field.
-
dstY
public CUDA_MEMCPY3D_PEER.Buffer dstY(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstY()field.
-
dstZ
public CUDA_MEMCPY3D_PEER.Buffer dstZ(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstZ()field.
-
dstLOD
public CUDA_MEMCPY3D_PEER.Buffer dstLOD(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstLOD()field.
-
dstMemoryType
public CUDA_MEMCPY3D_PEER.Buffer dstMemoryType(int value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstMemoryType()field.
-
dstHost
public CUDA_MEMCPY3D_PEER.Buffer dstHost(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theCUDA_MEMCPY3D_PEER.dstHost(int)field.
-
dstDevice
public CUDA_MEMCPY3D_PEER.Buffer dstDevice(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstDevice()field.
-
dstArray
public CUDA_MEMCPY3D_PEER.Buffer dstArray(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstArray()field.
-
dstContext
public CUDA_MEMCPY3D_PEER.Buffer dstContext(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstContext()field.
-
dstPitch
public CUDA_MEMCPY3D_PEER.Buffer dstPitch(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstPitch()field.
-
dstHeight
public CUDA_MEMCPY3D_PEER.Buffer dstHeight(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.dstHeight()field.
-
WidthInBytes
public CUDA_MEMCPY3D_PEER.Buffer WidthInBytes(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.WidthInBytes()field.
-
Height
public CUDA_MEMCPY3D_PEER.Buffer Height(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.Height()field.
-
Depth
public CUDA_MEMCPY3D_PEER.Buffer Depth(long value)
Sets the specified value to theCUDA_MEMCPY3D_PEER.Depth()field.
-
-