public class CUDA_MEMCPY2D
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
srcXInBytes – Source X in bytessrcY – Source YsrcMemoryType – Source memory type (host, device, array)srcHost – Source host pointersrcDevice – Source device pointersrcArray – Source array referencesrcPitch – Source pitch (ignored when src is array)dstXInBytes – Destination X in bytesdstY – Destination YdstMemoryType – Destination memory type (host, device, array)dstHost – Destination host pointerdstDevice – Destination device pointerdstArray – Destination array referencedstPitch – Destination pitch (ignored when dst is array)WidthInBytes – Width of 2D memory copy in bytesHeight – Height of 2D memory copy
struct CUDA_MEMCPY2D {
size_t srcXInBytes;
size_t srcY;
CUmemorytype srcMemoryType;
void const * srcHost;
CUdeviceptr srcDevice;
CUarray srcArray;
size_t srcPitch;
size_t dstXInBytes;
size_t dstY;
CUmemorytype dstMemoryType;
void * dstHost;
CUdeviceptr dstDevice;
CUarray dstArray;
size_t dstPitch;
size_t WidthInBytes;
size_t Height;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_MEMCPY2D.Buffer
An array of
CUDA_MEMCPY2D structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTARRAY
The struct member offsets.
|
static int |
DSTDEVICE
The struct member offsets.
|
static int |
DSTHOST
The struct member offsets.
|
static int |
DSTMEMORYTYPE
The struct member offsets.
|
static int |
DSTPITCH
The struct member offsets.
|
static int |
DSTXINBYTES
The struct member offsets.
|
static int |
DSTY
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCARRAY
The struct member offsets.
|
static int |
SRCDEVICE
The struct member offsets.
|
static int |
SRCHOST
The struct member offsets.
|
static int |
SRCMEMORYTYPE
The struct member offsets.
|
static int |
SRCPITCH
The struct member offsets.
|
static int |
SRCXINBYTES
The struct member offsets.
|
static int |
SRCY
The struct member offsets.
|
static int |
WIDTHINBYTES
The struct member offsets.
|
| Constructor and Description |
|---|
CUDA_MEMCPY2D(java.nio.ByteBuffer container)
Creates a
CUDA_MEMCPY2D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUDA_MEMCPY2D |
calloc()
Returns a new
CUDA_MEMCPY2D instance allocated with memCalloc. |
static CUDA_MEMCPY2D.Buffer |
calloc(int capacity)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated with memCalloc. |
static CUDA_MEMCPY2D |
callocStack()
Returns a new
CUDA_MEMCPY2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_MEMCPY2D.Buffer |
callocStack(int capacity)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_MEMCPY2D.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_MEMCPY2D |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMCPY2D instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_MEMCPY2D |
create()
Returns a new
CUDA_MEMCPY2D instance allocated with BufferUtils. |
static CUDA_MEMCPY2D.Buffer |
create(int capacity)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated with BufferUtils. |
static CUDA_MEMCPY2D |
create(long address)
Returns a new
CUDA_MEMCPY2D instance for the specified memory address. |
static CUDA_MEMCPY2D.Buffer |
create(long address,
int capacity)
Create a
CUDA_MEMCPY2D.Buffer instance at the specified memory. |
static CUDA_MEMCPY2D |
createSafe(long address)
|
static CUDA_MEMCPY2D.Buffer |
createSafe(long address,
int capacity)
|
long |
dstArray()
Returns the value of the
dstArray field. |
CUDA_MEMCPY2D |
dstArray(long value)
Sets the specified value to the
dstArray field. |
long |
dstDevice()
Returns the value of the
dstDevice field. |
CUDA_MEMCPY2D |
dstDevice(long value)
Sets the specified value to the
dstDevice field. |
CUDA_MEMCPY2D |
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 |
dstMemoryType(int value)
Sets the specified value to the
dstMemoryType field. |
long |
dstPitch()
Returns the value of the
dstPitch field. |
CUDA_MEMCPY2D |
dstPitch(long value)
Sets the specified value to the
dstPitch field. |
long |
dstXInBytes()
Returns the value of the
dstXInBytes field. |
CUDA_MEMCPY2D |
dstXInBytes(long value)
Sets the specified value to the
dstXInBytes field. |
long |
dstY()
Returns the value of the
dstY field. |
CUDA_MEMCPY2D |
dstY(long value)
Sets the specified value to the
dstY field. |
long |
Height()
Returns the value of the
Height field. |
CUDA_MEMCPY2D |
Height(long value)
Sets the specified value to the
Height field. |
static CUDA_MEMCPY2D |
malloc()
Returns a new
CUDA_MEMCPY2D instance allocated with memAlloc. |
static CUDA_MEMCPY2D.Buffer |
malloc(int capacity)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated with memAlloc. |
static CUDA_MEMCPY2D |
mallocStack()
Returns a new
CUDA_MEMCPY2D instance allocated on the thread-local MemoryStack. |
static CUDA_MEMCPY2D.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_MEMCPY2D.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack. |
static CUDA_MEMCPY2D |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_MEMCPY2D instance allocated on the specified MemoryStack. |
static long |
ndstArray(long struct)
Unsafe version of
dstArray(). |
static void |
ndstArray(long struct,
long value)
Unsafe version of
dstArray. |
static long |
ndstDevice(long struct)
Unsafe version of
dstDevice(). |
static void |
ndstDevice(long struct,
long value)
Unsafe version of
dstDevice. |
static void |
ndstHost(long struct,
java.nio.ByteBuffer value)
Unsafe version of
dstHost. |
static java.nio.ByteBuffer |
ndstHost(long struct,
int capacity)
Unsafe version of
dstHost. |
static int |
ndstMemoryType(long struct)
Unsafe version of
dstMemoryType(). |
static void |
ndstMemoryType(long struct,
int value)
Unsafe version of
dstMemoryType. |
static long |
ndstPitch(long struct)
Unsafe version of
dstPitch(). |
static void |
ndstPitch(long struct,
long value)
Unsafe version of
dstPitch. |
static long |
ndstXInBytes(long struct)
Unsafe version of
dstXInBytes(). |
static void |
ndstXInBytes(long struct,
long value)
Unsafe version of
dstXInBytes. |
static long |
ndstY(long struct)
Unsafe version of
dstY(). |
static void |
ndstY(long struct,
long value)
Unsafe version of
dstY. |
static long |
nHeight(long struct)
Unsafe version of
Height(). |
static void |
nHeight(long struct,
long value)
Unsafe version of
Height. |
static long |
nsrcArray(long struct)
Unsafe version of
srcArray(). |
static void |
nsrcArray(long struct,
long value)
Unsafe version of
srcArray. |
static long |
nsrcDevice(long struct)
Unsafe version of
srcDevice(). |
static void |
nsrcDevice(long struct,
long value)
Unsafe version of
srcDevice. |
static void |
nsrcHost(long struct,
java.nio.ByteBuffer value)
Unsafe version of
srcHost. |
static java.nio.ByteBuffer |
nsrcHost(long struct,
int capacity)
Unsafe version of
srcHost. |
static int |
nsrcMemoryType(long struct)
Unsafe version of
srcMemoryType(). |
static void |
nsrcMemoryType(long struct,
int value)
Unsafe version of
srcMemoryType. |
static long |
nsrcPitch(long struct)
Unsafe version of
srcPitch(). |
static void |
nsrcPitch(long struct,
long value)
Unsafe version of
srcPitch. |
static long |
nsrcXInBytes(long struct)
Unsafe version of
srcXInBytes(). |
static void |
nsrcXInBytes(long struct,
long value)
Unsafe version of
srcXInBytes. |
static long |
nsrcY(long struct)
Unsafe version of
srcY(). |
static void |
nsrcY(long struct,
long value)
Unsafe version of
srcY. |
static long |
nWidthInBytes(long struct)
Unsafe version of
WidthInBytes(). |
static void |
nWidthInBytes(long struct,
long value)
Unsafe version of
WidthInBytes. |
CUDA_MEMCPY2D |
set(CUDA_MEMCPY2D src)
Copies the specified struct data to this struct.
|
CUDA_MEMCPY2D |
set(long srcXInBytes,
long srcY,
int srcMemoryType,
java.nio.ByteBuffer srcHost,
long srcDevice,
long srcArray,
long srcPitch,
long dstXInBytes,
long dstY,
int dstMemoryType,
java.nio.ByteBuffer dstHost,
long dstDevice,
long dstArray,
long dstPitch,
long WidthInBytes,
long Height)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
srcArray()
Returns the value of the
srcArray field. |
CUDA_MEMCPY2D |
srcArray(long value)
Sets the specified value to the
srcArray field. |
long |
srcDevice()
Returns the value of the
srcDevice field. |
CUDA_MEMCPY2D |
srcDevice(long value)
Sets the specified value to the
srcDevice field. |
CUDA_MEMCPY2D |
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 |
srcMemoryType(int value)
Sets the specified value to the
srcMemoryType field. |
long |
srcPitch()
Returns the value of the
srcPitch field. |
CUDA_MEMCPY2D |
srcPitch(long value)
Sets the specified value to the
srcPitch field. |
long |
srcXInBytes()
Returns the value of the
srcXInBytes field. |
CUDA_MEMCPY2D |
srcXInBytes(long value)
Sets the specified value to the
srcXInBytes field. |
long |
srcY()
Returns the value of the
srcY field. |
CUDA_MEMCPY2D |
srcY(long value)
Sets the specified value to the
srcY field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
long |
WidthInBytes()
Returns the value of the
WidthInBytes field. |
CUDA_MEMCPY2D |
WidthInBytes(long value)
Sets the specified value to the
WidthInBytes field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SRCXINBYTES
public static final int SRCY
public static final int SRCMEMORYTYPE
public static final int SRCHOST
public static final int SRCDEVICE
public static final int SRCARRAY
public static final int SRCPITCH
public static final int DSTXINBYTES
public static final int DSTY
public static final int DSTMEMORYTYPE
public static final int DSTHOST
public static final int DSTDEVICE
public static final int DSTARRAY
public static final int DSTPITCH
public static final int WIDTHINBYTES
public static final int HEIGHT
public CUDA_MEMCPY2D(java.nio.ByteBuffer container)
CUDA_MEMCPY2D instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic 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 srcXInBytes(long value)
srcXInBytes field.public CUDA_MEMCPY2D srcY(long value)
srcY field.public CUDA_MEMCPY2D srcMemoryType(int value)
srcMemoryType field.public CUDA_MEMCPY2D srcHost(java.nio.ByteBuffer value)
ByteBuffer to the srcHost field.public CUDA_MEMCPY2D srcDevice(long value)
srcDevice field.public CUDA_MEMCPY2D srcArray(long value)
srcArray field.public CUDA_MEMCPY2D srcPitch(long value)
srcPitch field.public CUDA_MEMCPY2D dstXInBytes(long value)
dstXInBytes field.public CUDA_MEMCPY2D dstY(long value)
dstY field.public CUDA_MEMCPY2D dstMemoryType(int value)
dstMemoryType field.public CUDA_MEMCPY2D dstHost(java.nio.ByteBuffer value)
ByteBuffer to the dstHost field.public CUDA_MEMCPY2D dstDevice(long value)
dstDevice field.public CUDA_MEMCPY2D dstArray(long value)
dstArray field.public CUDA_MEMCPY2D dstPitch(long value)
dstPitch field.public CUDA_MEMCPY2D WidthInBytes(long value)
WidthInBytes field.public CUDA_MEMCPY2D Height(long value)
Height field.public CUDA_MEMCPY2D set(long srcXInBytes, long srcY, int srcMemoryType, java.nio.ByteBuffer srcHost, long srcDevice, long srcArray, long srcPitch, long dstXInBytes, long dstY, int dstMemoryType, java.nio.ByteBuffer dstHost, long dstDevice, long dstArray, long dstPitch, long WidthInBytes, long Height)
public CUDA_MEMCPY2D set(CUDA_MEMCPY2D src)
src - the source structpublic static CUDA_MEMCPY2D malloc()
CUDA_MEMCPY2D instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_MEMCPY2D calloc()
CUDA_MEMCPY2D instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_MEMCPY2D create()
CUDA_MEMCPY2D instance allocated with BufferUtils.public static CUDA_MEMCPY2D create(long address)
CUDA_MEMCPY2D instance for the specified memory address.@Nullable public static CUDA_MEMCPY2D createSafe(long address)
public static CUDA_MEMCPY2D.Buffer malloc(int capacity)
CUDA_MEMCPY2D.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer calloc(int capacity)
CUDA_MEMCPY2D.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer create(int capacity)
CUDA_MEMCPY2D.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer create(long address, int capacity)
CUDA_MEMCPY2D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_MEMCPY2D.Buffer createSafe(long address, int capacity)
public static CUDA_MEMCPY2D mallocStack()
CUDA_MEMCPY2D instance allocated on the thread-local MemoryStack.public static CUDA_MEMCPY2D callocStack()
CUDA_MEMCPY2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_MEMCPY2D mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_MEMCPY2D instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_MEMCPY2D callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_MEMCPY2D instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_MEMCPY2D.Buffer mallocStack(int capacity)
CUDA_MEMCPY2D.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer callocStack(int capacity)
CUDA_MEMCPY2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_MEMCPY2D.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nsrcXInBytes(long struct)
srcXInBytes().public static long nsrcY(long struct)
srcY().public static int nsrcMemoryType(long struct)
srcMemoryType().public static java.nio.ByteBuffer nsrcHost(long struct,
int capacity)
srcHost.public static long nsrcDevice(long struct)
srcDevice().public static long nsrcArray(long struct)
srcArray().public static long nsrcPitch(long struct)
srcPitch().public static long ndstXInBytes(long struct)
dstXInBytes().public static long ndstY(long struct)
dstY().public static int ndstMemoryType(long struct)
dstMemoryType().public static java.nio.ByteBuffer ndstHost(long struct,
int capacity)
dstHost.public static long ndstDevice(long struct)
dstDevice().public static long ndstArray(long struct)
dstArray().public static long ndstPitch(long struct)
dstPitch().public static long nWidthInBytes(long struct)
WidthInBytes().public static long nHeight(long struct)
Height().public static void nsrcXInBytes(long struct,
long value)
srcXInBytes.public static void nsrcY(long struct,
long value)
srcY.public static void nsrcMemoryType(long struct,
int value)
srcMemoryType.public static void nsrcHost(long struct,
java.nio.ByteBuffer value)
srcHost.public static void nsrcDevice(long struct,
long value)
srcDevice.public static void nsrcArray(long struct,
long value)
srcArray.public static void nsrcPitch(long struct,
long value)
srcPitch.public static void ndstXInBytes(long struct,
long value)
dstXInBytes.public static void ndstY(long struct,
long value)
dstY.public static void ndstMemoryType(long struct,
int value)
dstMemoryType.public static void ndstHost(long struct,
java.nio.ByteBuffer value)
dstHost.public static void ndstDevice(long struct,
long value)
dstDevice.public static void ndstArray(long struct,
long value)
dstArray.public static void ndstPitch(long struct,
long value)
dstPitch.public static void nWidthInBytes(long struct,
long value)
WidthInBytes.public static void nHeight(long struct,
long value)
Height.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.