Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_MEMCPY2D

extends Struct<CUDA_MEMCPY2D>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CUDA_MEMCPY2D.Buffer

An array of CUDA_MEMCPY2D structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DSTARRAY

The struct member offsets.

public static final int
DSTDEVICE

The struct member offsets.

public static final int
DSTHOST

The struct member offsets.

public static final int
DSTMEMORYTYPE

The struct member offsets.

public static final int
DSTPITCH

The struct member offsets.

public static final int
DSTXINBYTES

The struct member offsets.

public static final int
DSTY

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCARRAY

The struct member offsets.

public static final int
SRCDEVICE

The struct member offsets.

public static final int
SRCHOST

The struct member offsets.

public static final int
SRCMEMORYTYPE

The struct member offsets.

public static final int
SRCPITCH

The struct member offsets.

public static final int
SRCXINBYTES

The struct member offsets.

public static final int
SRCY

The struct member offsets.

public static final int
WIDTHINBYTES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
CUDA_MEMCPY2D(long address, ByteBuffer container)

public
CUDA_MEMCPY2D(ByteBuffer container)

Creates a CUDA_MEMCPY2D instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static CUDA_MEMCPY2D
calloc()

Returns a new CUDA_MEMCPY2D instance allocated with memCalloc.

public static CUDA_MEMCPY2D.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CUDA_MEMCPY2D.Buffer instance allocated with memCalloc.

public static CUDA_MEMCPY2D
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_MEMCPY2D instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_MEMCPY2D.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_MEMCPY2D
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CUDA_MEMCPY2D
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CUDA_MEMCPY2D
create()

Returns a new CUDA_MEMCPY2D instance allocated with BufferUtils.

public static CUDA_MEMCPY2D
create(long address)

Returns a new CUDA_MEMCPY2D instance for the specified memory address.

public static CUDA_MEMCPY2D.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CUDA_MEMCPY2D.Buffer instance allocated with BufferUtils.

public static CUDA_MEMCPY2D.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CUDA_MEMCPY2D.Buffer instance at the specified memory.

public static CUDA_MEMCPY2D
createSafe(long address)

Like create, but returns null if address is NULL.

public static CUDA_MEMCPY2D.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long

Returns:

the value of the dstArray field.
dstArray
()

public CUDA_MEMCPY2D
dstArray(long value)

Sets the specified value to the dstArray field.

public long

Returns:

the value of the dstDevice field.
dstDevice
()

public CUDA_MEMCPY2D
dstDevice(long value)

Sets the specified value to the dstDevice field.

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the dstHost field.
dstHost
(int
the number of elements in the returned buffer
capacity
)

public CUDA_MEMCPY2D
dstHost(ByteBuffer value)

Sets the address of the specified ByteBuffer to the dstHost field.

public int

Returns:

the value of the dstMemoryType field.
dstMemoryType
()

public CUDA_MEMCPY2D
dstMemoryType(int value)

Sets the specified value to the dstMemoryType field.

public long

Returns:

the value of the dstPitch field.
dstPitch
()

public CUDA_MEMCPY2D
dstPitch(long value)

Sets the specified value to the dstPitch field.

public long

Returns:

the value of the dstXInBytes field.
dstXInBytes
()

public CUDA_MEMCPY2D
dstXInBytes(long value)

Sets the specified value to the dstXInBytes field.

public long

Returns:

the value of the dstY field.
dstY
()

public CUDA_MEMCPY2D
dstY(long value)

Sets the specified value to the dstY field.

public long

Returns:

the value of the Height field.
Height
()

public CUDA_MEMCPY2D
Height(long value)

Sets the specified value to the Height field.

public static CUDA_MEMCPY2D
malloc()

Returns a new CUDA_MEMCPY2D instance allocated with memAlloc.

public static CUDA_MEMCPY2D.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CUDA_MEMCPY2D.Buffer instance allocated with memAlloc.

public static CUDA_MEMCPY2D
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_MEMCPY2D instance allocated on the specified MemoryStack.

public static CUDA_MEMCPY2D.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_MEMCPY2D.Buffer instance allocated on the specified MemoryStack.

public static CUDA_MEMCPY2D
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_MEMCPY2D.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
ndstArray(long struct)

Unsafe version of dstArray.

public static void
ndstArray(long struct, long value)

Unsafe version of dstArray.

public static long
ndstDevice(long struct)

Unsafe version of dstDevice.

public static void
ndstDevice(long struct, long value)

Unsafe version of dstDevice.

public static ByteBuffer
ndstHost(long struct, int capacity)

Unsafe version of dstHost.

public static void
ndstHost(long struct, ByteBuffer value)

Unsafe version of dstHost.

public static int
ndstMemoryType(long struct)

Unsafe version of dstMemoryType.

public static void
ndstMemoryType(long struct, int value)

Unsafe version of dstMemoryType.

public static long
ndstPitch(long struct)

Unsafe version of dstPitch.

public static void
ndstPitch(long struct, long value)

Unsafe version of dstPitch.

public static long
ndstXInBytes(long struct)

Unsafe version of dstXInBytes.

public static void
ndstXInBytes(long struct, long value)

Unsafe version of dstXInBytes.

public static long
ndstY(long struct)

Unsafe version of dstY.

public static void
ndstY(long struct, long value)

Unsafe version of dstY.

public static long
nHeight(long struct)

Unsafe version of Height.

public static void
nHeight(long struct, long value)

Unsafe version of Height.

public static long
nsrcArray(long struct)

Unsafe version of srcArray.

public static void
nsrcArray(long struct, long value)

Unsafe version of srcArray.

public static long
nsrcDevice(long struct)

Unsafe version of srcDevice.

public static void
nsrcDevice(long struct, long value)

Unsafe version of srcDevice.

public static ByteBuffer
nsrcHost(long struct, int capacity)

Unsafe version of srcHost.

public static void
nsrcHost(long struct, ByteBuffer value)

Unsafe version of srcHost.

public static int
nsrcMemoryType(long struct)

Unsafe version of srcMemoryType.

public static void
nsrcMemoryType(long struct, int value)

Unsafe version of srcMemoryType.

public static long
nsrcPitch(long struct)

Unsafe version of srcPitch.

public static void
nsrcPitch(long struct, long value)

Unsafe version of srcPitch.

public static long
nsrcXInBytes(long struct)

Unsafe version of srcXInBytes.

public static void
nsrcXInBytes(long struct, long value)

Unsafe version of srcXInBytes.

public static long
nsrcY(long struct)

Unsafe version of srcY.

public static void
nsrcY(long struct, long value)

Unsafe version of srcY.

public static long
nWidthInBytes(long struct)

Unsafe version of WidthInBytes.

public static void
nWidthInBytes(long struct, long value)

Unsafe version of WidthInBytes.

public CUDA_MEMCPY2D
set(long srcXInBytes, long srcY, int srcMemoryType, ByteBuffer srcHost, long srcDevice, long srcArray, long srcPitch, long dstXInBytes, long dstY, int dstMemoryType, ByteBuffer dstHost, long dstDevice, long dstArray, long dstPitch, long WidthInBytes, long Height)

Initializes this struct with the specified values.

public CUDA_MEMCPY2D

Returns:

this struct
set
(CUDA_MEMCPY2D
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long

Returns:

the value of the srcArray field.
srcArray
()

public CUDA_MEMCPY2D
srcArray(long value)

Sets the specified value to the srcArray field.

public long

Returns:

the value of the srcDevice field.
srcDevice
()

public CUDA_MEMCPY2D
srcDevice(long value)

Sets the specified value to the srcDevice field.

public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the srcHost field.
srcHost
(int
the number of elements in the returned buffer
capacity
)

public CUDA_MEMCPY2D
srcHost(ByteBuffer value)

Sets the address of the specified ByteBuffer to the srcHost field.

public int

Returns:

the value of the srcMemoryType field.
srcMemoryType
()

public CUDA_MEMCPY2D
srcMemoryType(int value)

Sets the specified value to the srcMemoryType field.

public long

Returns:

the value of the srcPitch field.
srcPitch
()

public CUDA_MEMCPY2D
srcPitch(long value)

Sets the specified value to the srcPitch field.

public long

Returns:

the value of the srcXInBytes field.
srcXInBytes
()

public CUDA_MEMCPY2D
srcXInBytes(long value)

Sets the specified value to the srcXInBytes field.

public long

Returns:

the value of the srcY field.
srcY
()

public CUDA_MEMCPY2D
srcY(long value)

Sets the specified value to the srcY field.

public long

Returns:

the value of the WidthInBytes field.
WidthInBytes
()

public CUDA_MEMCPY2D
WidthInBytes(long value)

Sets the specified value to the WidthInBytes field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate