Package org.lwjgl.cuda
Class CUDA_MEMCPY2D.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_MEMCPY2D.Buffer>
org.lwjgl.system.StructBuffer<CUDA_MEMCPY2D,CUDA_MEMCPY2D.Buffer>
org.lwjgl.cuda.CUDA_MEMCPY2D.Buffer
- All Implemented Interfaces:
AutoCloseable,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 of
CUDA_MEMCPY2D 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_MEMCPY2D.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongdstArray()dstArray(long value) Sets the specified value to thedstArrayfield.longdstDevice(long value) Sets the specified value to thedstDevicefield.@Nullable ByteBufferdstHost(int capacity) dstHost(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thedstHostfield.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.longHeight()Height(long value) Sets the specified value to theHeightfield.longsrcArray()srcArray(long value) Sets the specified value to thesrcArrayfield.longsrcDevice(long value) Sets the specified value to thesrcDevicefield.@Nullable ByteBuffersrcHost(int capacity) srcHost(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto thesrcHostfield.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.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_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 by
CUDA_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 Details
-
srcXInBytes
public long srcXInBytes()- Returns:
- the value of the
srcXInBytesfield.
-
srcY
public long srcY()- Returns:
- the value of the
srcYfield.
-
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.
-
srcPitch
public long srcPitch()- Returns:
- the value of the
srcPitchfield.
-
dstXInBytes
public long dstXInBytes()- Returns:
- the value of the
dstXInBytesfield.
-
dstY
public long dstY()- Returns:
- the value of the
dstYfield.
-
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.
-
dstPitch
public long dstPitch()- Returns:
- the value of the
dstPitchfield.
-
WidthInBytes
public long WidthInBytes()- Returns:
- the value of the
WidthInBytesfield.
-
Height
public long Height()- Returns:
- the value of the
Heightfield.
-
srcXInBytes
Sets the specified value to thesrcXInBytesfield. -
srcY
Sets the specified value to thesrcYfield. -
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. -
srcPitch
Sets the specified value to thesrcPitchfield. -
dstXInBytes
Sets the specified value to thedstXInBytesfield. -
dstY
Sets the specified value to thedstYfield. -
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. -
dstPitch
Sets the specified value to thedstPitchfield. -
WidthInBytes
Sets the specified value to theWidthInBytesfield. -
Height
Sets the specified value to theHeightfield.
-