Package org.lwjgl.cuda
Class CUDA_MEMCPY3D_PEER.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_MEMCPY3D_PEER.Buffer>
org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D_PEER,CUDA_MEMCPY3D_PEER.Buffer>
org.lwjgl.cuda.CUDA_MEMCPY3D_PEER.Buffer
- All Implemented Interfaces:
AutoCloseable,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 of
CUDA_MEMCPY3D_PEER structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newCUDA_MEMCPY3D_PEER.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongDepth()Depth(long value) Sets the specified value to theDepthfield.longdstArray()dstArray(long value) Sets the specified value to thedstArrayfield.longdstContext(long value) Sets the specified value to thedstContextfield.longdstDevice(long value) Sets the specified value to thedstDevicefield.longdstHeight(long value) Sets the specified value to thedstHeightfield.@Nullable ByteBufferdstHost(int capacity) dstHost(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thedstHostfield.longdstLOD()dstLOD(long value) Sets the specified value to thedstLODfield.intdstMemoryType(int value) Sets the specified value to thedstMemoryTypefield.longdstPitch()dstPitch(long value) Sets the specified value to thedstPitchfield.longdstXInBytes(long value) Sets the specified value to thedstXInBytesfield.longdstY()dstY(long value) Sets the specified value to thedstYfield.longdstZ()dstZ(long value) Sets the specified value to thedstZfield.longHeight()Height(long value) Sets the specified value to theHeightfield.longsrcArray()srcArray(long value) Sets the specified value to thesrcArrayfield.longsrcContext(long value) Sets the specified value to thesrcContextfield.longsrcDevice(long value) Sets the specified value to thesrcDevicefield.longsrcHeight(long value) Sets the specified value to thesrcHeightfield.@Nullable ByteBuffersrcHost(int capacity) srcHost(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thesrcHostfield.longsrcLOD()srcLOD(long value) Sets the specified value to thesrcLODfield.intsrcMemoryType(int value) Sets the specified value to thesrcMemoryTypefield.longsrcPitch()srcPitch(long value) Sets the specified value to thesrcPitchfield.longsrcXInBytes(long value) Sets the specified value to thesrcXInBytesfield.longsrcY()srcY(long value) Sets the specified value to thesrcYfield.longsrcZ()srcZ(long value) Sets the specified value to thesrcZfield.longWidthInBytes(long value) Sets the specified value to theWidthInBytesfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
CUDA_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 Details
-
srcXInBytes
public long srcXInBytes()- Returns:
- the value of the
srcXInBytesfield.
-
srcY
public long srcY()- Returns:
- the value of the
srcYfield.
-
srcZ
public long srcZ()- Returns:
- the value of the
srcZfield.
-
srcLOD
public long srcLOD()- Returns:
- the value of the
srcLODfield.
-
srcMemoryType
public int srcMemoryType()- Returns:
- the value of the
srcMemoryTypefield.
-
srcHost
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thesrcHostfield.
-
srcDevice
public long srcDevice()- Returns:
- the value of the
srcDevicefield.
-
srcArray
public long srcArray()- Returns:
- the value of the
srcArrayfield.
-
srcContext
public long srcContext()- Returns:
- the value of the
srcContextfield.
-
srcPitch
public long srcPitch()- Returns:
- the value of the
srcPitchfield.
-
srcHeight
public long srcHeight()- Returns:
- the value of the
srcHeightfield.
-
dstXInBytes
public long dstXInBytes()- Returns:
- the value of the
dstXInBytesfield.
-
dstY
public long dstY()- Returns:
- the value of the
dstYfield.
-
dstZ
public long dstZ()- Returns:
- the value of the
dstZfield.
-
dstLOD
public long dstLOD()- Returns:
- the value of the
dstLODfield.
-
dstMemoryType
public int dstMemoryType()- Returns:
- the value of the
dstMemoryTypefield.
-
dstHost
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thedstHostfield.
-
dstDevice
public long dstDevice()- Returns:
- the value of the
dstDevicefield.
-
dstArray
public long dstArray()- Returns:
- the value of the
dstArrayfield.
-
dstContext
public long dstContext()- Returns:
- the value of the
dstContextfield.
-
dstPitch
public long dstPitch()- Returns:
- the value of the
dstPitchfield.
-
dstHeight
public long dstHeight()- Returns:
- the value of the
dstHeightfield.
-
WidthInBytes
public long WidthInBytes()- Returns:
- the value of the
WidthInBytesfield.
-
Height
public long Height()- Returns:
- the value of the
Heightfield.
-
Depth
public long Depth()- Returns:
- the value of the
Depthfield.
-
srcXInBytes
Sets the specified value to thesrcXInBytesfield. -
srcY
Sets the specified value to thesrcYfield. -
srcZ
Sets the specified value to thesrcZfield. -
srcLOD
Sets the specified value to thesrcLODfield. -
srcMemoryType
Sets the specified value to thesrcMemoryTypefield. -
srcHost
Sets the address of the specifiedByteBufferto thesrcHostfield. -
srcDevice
Sets the specified value to thesrcDevicefield. -
srcArray
Sets the specified value to thesrcArrayfield. -
srcContext
Sets the specified value to thesrcContextfield. -
srcPitch
Sets the specified value to thesrcPitchfield. -
srcHeight
Sets the specified value to thesrcHeightfield. -
dstXInBytes
Sets the specified value to thedstXInBytesfield. -
dstY
Sets the specified value to thedstYfield. -
dstZ
Sets the specified value to thedstZfield. -
dstLOD
Sets the specified value to thedstLODfield. -
dstMemoryType
Sets the specified value to thedstMemoryTypefield. -
dstHost
Sets the address of the specifiedByteBufferto thedstHostfield. -
dstDevice
Sets the specified value to thedstDevicefield. -
dstArray
Sets the specified value to thedstArrayfield. -
dstContext
Sets the specified value to thedstContextfield. -
dstPitch
Sets the specified value to thedstPitchfield. -
dstHeight
Sets the specified value to thedstHeightfield. -
WidthInBytes
Sets the specified value to theWidthInBytesfield. -
Height
Sets the specified value to theHeightfield. -
Depth
Sets the specified value to theDepthfield.
-