public static class CUDA_MEMCPY2D.Buffer extends org.lwjgl.system.StructBuffer<CUDA_MEMCPY2D,CUDA_MEMCPY2D.Buffer> implements org.lwjgl.system.NativeResource
CUDA_MEMCPY2D structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_MEMCPY2D.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
long |
dstArray()
Returns the value of the
dstArray field. |
CUDA_MEMCPY2D.Buffer |
dstArray(long value)
Sets the specified value to the
dstArray field. |
long |
dstDevice()
Returns the value of the
dstDevice field. |
CUDA_MEMCPY2D.Buffer |
dstDevice(long value)
Sets the specified value to the
dstDevice field. |
CUDA_MEMCPY2D.Buffer |
dstHost(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the dstHost field. |
java.nio.ByteBuffer |
dstHost(int capacity)
Returns a
ByteBuffer view of the data pointed to by the dstHost field. |
int |
dstMemoryType()
Returns the value of the
dstMemoryType field. |
CUDA_MEMCPY2D.Buffer |
dstMemoryType(int value)
Sets the specified value to the
dstMemoryType field. |
long |
dstPitch()
Returns the value of the
dstPitch field. |
CUDA_MEMCPY2D.Buffer |
dstPitch(long value)
Sets the specified value to the
dstPitch field. |
long |
dstXInBytes()
Returns the value of the
dstXInBytes field. |
CUDA_MEMCPY2D.Buffer |
dstXInBytes(long value)
Sets the specified value to the
dstXInBytes field. |
long |
dstY()
Returns the value of the
dstY field. |
CUDA_MEMCPY2D.Buffer |
dstY(long value)
Sets the specified value to the
dstY field. |
long |
Height()
Returns the value of the
Height field. |
CUDA_MEMCPY2D.Buffer |
Height(long value)
Sets the specified value to the
Height field. |
long |
srcArray()
Returns the value of the
srcArray field. |
CUDA_MEMCPY2D.Buffer |
srcArray(long value)
Sets the specified value to the
srcArray field. |
long |
srcDevice()
Returns the value of the
srcDevice field. |
CUDA_MEMCPY2D.Buffer |
srcDevice(long value)
Sets the specified value to the
srcDevice field. |
CUDA_MEMCPY2D.Buffer |
srcHost(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the srcHost field. |
java.nio.ByteBuffer |
srcHost(int capacity)
Returns a
ByteBuffer view of the data pointed to by the srcHost field. |
int |
srcMemoryType()
Returns the value of the
srcMemoryType field. |
CUDA_MEMCPY2D.Buffer |
srcMemoryType(int value)
Sets the specified value to the
srcMemoryType field. |
long |
srcPitch()
Returns the value of the
srcPitch field. |
CUDA_MEMCPY2D.Buffer |
srcPitch(long value)
Sets the specified value to the
srcPitch field. |
long |
srcXInBytes()
Returns the value of the
srcXInBytes field. |
CUDA_MEMCPY2D.Buffer |
srcXInBytes(long value)
Sets the specified value to the
srcXInBytes field. |
long |
srcY()
Returns the value of the
srcY field. |
CUDA_MEMCPY2D.Buffer |
srcY(long value)
Sets the specified value to the
srcY field. |
long |
WidthInBytes()
Returns the value of the
WidthInBytes field. |
CUDA_MEMCPY2D.Buffer |
WidthInBytes(long value)
Sets the specified value to the
WidthInBytes field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_MEMCPY2D.Buffer instance 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.
public Buffer(long address,
int cap)
public long srcXInBytes()
srcXInBytes field.public long srcY()
srcY field.public int srcMemoryType()
srcMemoryType field.public java.nio.ByteBuffer srcHost(int capacity)
ByteBuffer view of the data pointed to by the srcHost field.capacity - the number of elements in the returned bufferpublic long srcDevice()
srcDevice field.public long srcArray()
srcArray field.public long srcPitch()
srcPitch field.public long dstXInBytes()
dstXInBytes field.public long dstY()
dstY field.public int dstMemoryType()
dstMemoryType field.public java.nio.ByteBuffer dstHost(int capacity)
ByteBuffer view of the data pointed to by the dstHost field.capacity - the number of elements in the returned bufferpublic long dstDevice()
dstDevice field.public long dstArray()
dstArray field.public long dstPitch()
dstPitch field.public long WidthInBytes()
WidthInBytes field.public long Height()
Height field.public CUDA_MEMCPY2D.Buffer srcXInBytes(long value)
srcXInBytes field.public CUDA_MEMCPY2D.Buffer srcY(long value)
srcY field.public CUDA_MEMCPY2D.Buffer srcMemoryType(int value)
srcMemoryType field.public CUDA_MEMCPY2D.Buffer srcHost(java.nio.ByteBuffer value)
ByteBuffer to the srcHost field.public CUDA_MEMCPY2D.Buffer srcDevice(long value)
srcDevice field.public CUDA_MEMCPY2D.Buffer srcArray(long value)
srcArray field.public CUDA_MEMCPY2D.Buffer srcPitch(long value)
srcPitch field.public CUDA_MEMCPY2D.Buffer dstXInBytes(long value)
dstXInBytes field.public CUDA_MEMCPY2D.Buffer dstY(long value)
dstY field.public CUDA_MEMCPY2D.Buffer dstMemoryType(int value)
dstMemoryType field.public CUDA_MEMCPY2D.Buffer dstHost(java.nio.ByteBuffer value)
ByteBuffer to the dstHost field.public CUDA_MEMCPY2D.Buffer dstDevice(long value)
dstDevice field.public CUDA_MEMCPY2D.Buffer dstArray(long value)
dstArray field.public CUDA_MEMCPY2D.Buffer dstPitch(long value)
dstPitch field.public CUDA_MEMCPY2D.Buffer WidthInBytes(long value)
WidthInBytes field.public CUDA_MEMCPY2D.Buffer Height(long value)
Height field.Copyright LWJGL. All Rights Reserved. License terms.