Class CUDA_MEMCPY3D_PEER

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_MEMCPY3D_PEER>
org.lwjgl.cuda.CUDA_MEMCPY3D_PEER
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUDA_MEMCPY3D_PEER extends org.lwjgl.system.Struct<CUDA_MEMCPY3D_PEER> implements org.lwjgl.system.NativeResource

Layout


 struct CUDA_MEMCPY3D_PEER {
     size_t srcXInBytes;
     size_t srcY;
     size_t srcZ;
     size_t srcLOD;
     CUmemorytype srcMemoryType;
     void const * srcHost;
     CUdeviceptr srcDevice;
     CUarray srcArray;
     CUcontext srcContext;
     size_t srcPitch;
     size_t srcHeight;
     size_t dstXInBytes;
     size_t dstY;
     size_t dstZ;
     size_t dstLOD;
     CUmemorytype dstMemoryType;
     void * dstHost;
     CUdeviceptr dstDevice;
     CUarray dstArray;
     CUcontext dstContext;
     size_t dstPitch;
     size_t dstHeight;
     size_t WidthInBytes;
     size_t Height;
     size_t Depth;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SRCXINBYTES

      public static final int SRCXINBYTES
      The struct member offsets.
    • SRCY

      public static final int SRCY
      The struct member offsets.
    • SRCZ

      public static final int SRCZ
      The struct member offsets.
    • SRCLOD

      public static final int SRCLOD
      The struct member offsets.
    • SRCMEMORYTYPE

      public static final int SRCMEMORYTYPE
      The struct member offsets.
    • SRCHOST

      public static final int SRCHOST
      The struct member offsets.
    • SRCDEVICE

      public static final int SRCDEVICE
      The struct member offsets.
    • SRCARRAY

      public static final int SRCARRAY
      The struct member offsets.
    • SRCCONTEXT

      public static final int SRCCONTEXT
      The struct member offsets.
    • SRCPITCH

      public static final int SRCPITCH
      The struct member offsets.
    • SRCHEIGHT

      public static final int SRCHEIGHT
      The struct member offsets.
    • DSTXINBYTES

      public static final int DSTXINBYTES
      The struct member offsets.
    • DSTY

      public static final int DSTY
      The struct member offsets.
    • DSTZ

      public static final int DSTZ
      The struct member offsets.
    • DSTLOD

      public static final int DSTLOD
      The struct member offsets.
    • DSTMEMORYTYPE

      public static final int DSTMEMORYTYPE
      The struct member offsets.
    • DSTHOST

      public static final int DSTHOST
      The struct member offsets.
    • DSTDEVICE

      public static final int DSTDEVICE
      The struct member offsets.
    • DSTARRAY

      public static final int DSTARRAY
      The struct member offsets.
    • DSTCONTEXT

      public static final int DSTCONTEXT
      The struct member offsets.
    • DSTPITCH

      public static final int DSTPITCH
      The struct member offsets.
    • DSTHEIGHT

      public static final int DSTHEIGHT
      The struct member offsets.
    • WIDTHINBYTES

      public static final int WIDTHINBYTES
      The struct member offsets.
    • HEIGHT

      public static final int HEIGHT
      The struct member offsets.
    • DEPTH

      public static final int DEPTH
      The struct member offsets.
  • Constructor Details

    • CUDA_MEMCPY3D_PEER

      public CUDA_MEMCPY3D_PEER(ByteBuffer container)
      Creates a CUDA_MEMCPY3D_PEER 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.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUDA_MEMCPY3D_PEER>
    • srcXInBytes

      public long srcXInBytes()
      Returns:
      the value of the srcXInBytes field.
    • srcY

      public long srcY()
      Returns:
      the value of the srcY field.
    • srcZ

      public long srcZ()
      Returns:
      the value of the srcZ field.
    • srcLOD

      public long srcLOD()
      Returns:
      the value of the srcLOD field.
    • srcMemoryType

      public int srcMemoryType()
      Returns:
      the value of the srcMemoryType field.
    • srcHost

      public @Nullable ByteBuffer srcHost(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the srcHost field.
    • srcDevice

      public long srcDevice()
      Returns:
      the value of the srcDevice field.
    • srcArray

      public long srcArray()
      Returns:
      the value of the srcArray field.
    • srcContext

      public long srcContext()
      Returns:
      the value of the srcContext field.
    • srcPitch

      public long srcPitch()
      Returns:
      the value of the srcPitch field.
    • srcHeight

      public long srcHeight()
      Returns:
      the value of the srcHeight field.
    • dstXInBytes

      public long dstXInBytes()
      Returns:
      the value of the dstXInBytes field.
    • dstY

      public long dstY()
      Returns:
      the value of the dstY field.
    • dstZ

      public long dstZ()
      Returns:
      the value of the dstZ field.
    • dstLOD

      public long dstLOD()
      Returns:
      the value of the dstLOD field.
    • dstMemoryType

      public int dstMemoryType()
      Returns:
      the value of the dstMemoryType field.
    • dstHost

      public @Nullable ByteBuffer dstHost(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the dstHost field.
    • dstDevice

      public long dstDevice()
      Returns:
      the value of the dstDevice field.
    • dstArray

      public long dstArray()
      Returns:
      the value of the dstArray field.
    • dstContext

      public long dstContext()
      Returns:
      the value of the dstContext field.
    • dstPitch

      public long dstPitch()
      Returns:
      the value of the dstPitch field.
    • dstHeight

      public long dstHeight()
      Returns:
      the value of the dstHeight field.
    • WidthInBytes

      public long WidthInBytes()
      Returns:
      the value of the WidthInBytes field.
    • Height

      public long Height()
      Returns:
      the value of the Height field.
    • Depth

      public long Depth()
      Returns:
      the value of the Depth field.
    • srcXInBytes

      public CUDA_MEMCPY3D_PEER srcXInBytes(long value)
      Sets the specified value to the srcXInBytes field.
    • srcY

      public CUDA_MEMCPY3D_PEER srcY(long value)
      Sets the specified value to the srcY field.
    • srcZ

      public CUDA_MEMCPY3D_PEER srcZ(long value)
      Sets the specified value to the srcZ field.
    • srcLOD

      public CUDA_MEMCPY3D_PEER srcLOD(long value)
      Sets the specified value to the srcLOD field.
    • srcMemoryType

      public CUDA_MEMCPY3D_PEER srcMemoryType(int value)
      Sets the specified value to the srcMemoryType field.
    • srcHost

      public CUDA_MEMCPY3D_PEER srcHost(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the srcHost field.
    • srcDevice

      public CUDA_MEMCPY3D_PEER srcDevice(long value)
      Sets the specified value to the srcDevice field.
    • srcArray

      public CUDA_MEMCPY3D_PEER srcArray(long value)
      Sets the specified value to the srcArray field.
    • srcContext

      public CUDA_MEMCPY3D_PEER srcContext(long value)
      Sets the specified value to the srcContext field.
    • srcPitch

      public CUDA_MEMCPY3D_PEER srcPitch(long value)
      Sets the specified value to the srcPitch field.
    • srcHeight

      public CUDA_MEMCPY3D_PEER srcHeight(long value)
      Sets the specified value to the srcHeight field.
    • dstXInBytes

      public CUDA_MEMCPY3D_PEER dstXInBytes(long value)
      Sets the specified value to the dstXInBytes field.
    • dstY

      public CUDA_MEMCPY3D_PEER dstY(long value)
      Sets the specified value to the dstY field.
    • dstZ

      public CUDA_MEMCPY3D_PEER dstZ(long value)
      Sets the specified value to the dstZ field.
    • dstLOD

      public CUDA_MEMCPY3D_PEER dstLOD(long value)
      Sets the specified value to the dstLOD field.
    • dstMemoryType

      public CUDA_MEMCPY3D_PEER dstMemoryType(int value)
      Sets the specified value to the dstMemoryType field.
    • dstHost

      public CUDA_MEMCPY3D_PEER dstHost(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the dstHost field.
    • dstDevice

      public CUDA_MEMCPY3D_PEER dstDevice(long value)
      Sets the specified value to the dstDevice field.
    • dstArray

      public CUDA_MEMCPY3D_PEER dstArray(long value)
      Sets the specified value to the dstArray field.
    • dstContext

      public CUDA_MEMCPY3D_PEER dstContext(long value)
      Sets the specified value to the dstContext field.
    • dstPitch

      public CUDA_MEMCPY3D_PEER dstPitch(long value)
      Sets the specified value to the dstPitch field.
    • dstHeight

      public CUDA_MEMCPY3D_PEER dstHeight(long value)
      Sets the specified value to the dstHeight field.
    • WidthInBytes

      public CUDA_MEMCPY3D_PEER WidthInBytes(long value)
      Sets the specified value to the WidthInBytes field.
    • Height

      public CUDA_MEMCPY3D_PEER Height(long value)
      Sets the specified value to the Height field.
    • Depth

      public CUDA_MEMCPY3D_PEER Depth(long value)
      Sets the specified value to the Depth field.
    • set

      public CUDA_MEMCPY3D_PEER set(long srcXInBytes, long srcY, long srcZ, long srcLOD, int srcMemoryType, @Nullable ByteBuffer srcHost, long srcDevice, long srcArray, long srcContext, long srcPitch, long srcHeight, long dstXInBytes, long dstY, long dstZ, long dstLOD, int dstMemoryType, @Nullable ByteBuffer dstHost, long dstDevice, long dstArray, long dstContext, long dstPitch, long dstHeight, long WidthInBytes, long Height, long Depth)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static CUDA_MEMCPY3D_PEER malloc()
      Returns a new CUDA_MEMCPY3D_PEER instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static CUDA_MEMCPY3D_PEER calloc()
      Returns a new CUDA_MEMCPY3D_PEER instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static CUDA_MEMCPY3D_PEER create()
      Returns a new CUDA_MEMCPY3D_PEER instance allocated with BufferUtils.
    • create

      public static CUDA_MEMCPY3D_PEER create(long address)
      Returns a new CUDA_MEMCPY3D_PEER instance for the specified memory address.
    • createSafe

      public static @Nullable CUDA_MEMCPY3D_PEER createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUDA_MEMCPY3D_PEER.Buffer malloc(int capacity)
      Returns a new CUDA_MEMCPY3D_PEER.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CUDA_MEMCPY3D_PEER.Buffer calloc(int capacity)
      Returns a new CUDA_MEMCPY3D_PEER.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUDA_MEMCPY3D_PEER.Buffer create(int capacity)
      Returns a new CUDA_MEMCPY3D_PEER.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUDA_MEMCPY3D_PEER.Buffer create(long address, int capacity)
      Create a CUDA_MEMCPY3D_PEER.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CUDA_MEMCPY3D_PEER.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMCPY3D_PEER.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static CUDA_MEMCPY3D_PEER malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMCPY3D_PEER instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static CUDA_MEMCPY3D_PEER calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMCPY3D_PEER instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static CUDA_MEMCPY3D_PEER.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMCPY3D_PEER.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static CUDA_MEMCPY3D_PEER.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMCPY3D_PEER.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsrcXInBytes

      public static long nsrcXInBytes(long struct)
      Unsafe version of srcXInBytes().
    • nsrcY

      public static long nsrcY(long struct)
      Unsafe version of srcY().
    • nsrcZ

      public static long nsrcZ(long struct)
      Unsafe version of srcZ().
    • nsrcLOD

      public static long nsrcLOD(long struct)
      Unsafe version of srcLOD().
    • nsrcMemoryType

      public static int nsrcMemoryType(long struct)
      Unsafe version of srcMemoryType().
    • nsrcHost

      public static @Nullable ByteBuffer nsrcHost(long struct, int capacity)
      Unsafe version of srcHost.
    • nsrcDevice

      public static long nsrcDevice(long struct)
      Unsafe version of srcDevice().
    • nsrcArray

      public static long nsrcArray(long struct)
      Unsafe version of srcArray().
    • nsrcContext

      public static long nsrcContext(long struct)
      Unsafe version of srcContext().
    • nsrcPitch

      public static long nsrcPitch(long struct)
      Unsafe version of srcPitch().
    • nsrcHeight

      public static long nsrcHeight(long struct)
      Unsafe version of srcHeight().
    • ndstXInBytes

      public static long ndstXInBytes(long struct)
      Unsafe version of dstXInBytes().
    • ndstY

      public static long ndstY(long struct)
      Unsafe version of dstY().
    • ndstZ

      public static long ndstZ(long struct)
      Unsafe version of dstZ().
    • ndstLOD

      public static long ndstLOD(long struct)
      Unsafe version of dstLOD().
    • ndstMemoryType

      public static int ndstMemoryType(long struct)
      Unsafe version of dstMemoryType().
    • ndstHost

      public static @Nullable ByteBuffer ndstHost(long struct, int capacity)
      Unsafe version of dstHost.
    • ndstDevice

      public static long ndstDevice(long struct)
      Unsafe version of dstDevice().
    • ndstArray

      public static long ndstArray(long struct)
      Unsafe version of dstArray().
    • ndstContext

      public static long ndstContext(long struct)
      Unsafe version of dstContext().
    • ndstPitch

      public static long ndstPitch(long struct)
      Unsafe version of dstPitch().
    • ndstHeight

      public static long ndstHeight(long struct)
      Unsafe version of dstHeight().
    • nWidthInBytes

      public static long nWidthInBytes(long struct)
      Unsafe version of WidthInBytes().
    • nHeight

      public static long nHeight(long struct)
      Unsafe version of Height().
    • nDepth

      public static long nDepth(long struct)
      Unsafe version of Depth().
    • nsrcXInBytes

      public static void nsrcXInBytes(long struct, long value)
      Unsafe version of srcXInBytes.
    • nsrcY

      public static void nsrcY(long struct, long value)
      Unsafe version of srcY.
    • nsrcZ

      public static void nsrcZ(long struct, long value)
      Unsafe version of srcZ.
    • nsrcLOD

      public static void nsrcLOD(long struct, long value)
      Unsafe version of srcLOD.
    • nsrcMemoryType

      public static void nsrcMemoryType(long struct, int value)
      Unsafe version of srcMemoryType.
    • nsrcHost

      public static void nsrcHost(long struct, @Nullable ByteBuffer value)
      Unsafe version of srcHost.
    • nsrcDevice

      public static void nsrcDevice(long struct, long value)
      Unsafe version of srcDevice.
    • nsrcArray

      public static void nsrcArray(long struct, long value)
      Unsafe version of srcArray.
    • nsrcContext

      public static void nsrcContext(long struct, long value)
      Unsafe version of srcContext.
    • nsrcPitch

      public static void nsrcPitch(long struct, long value)
      Unsafe version of srcPitch.
    • nsrcHeight

      public static void nsrcHeight(long struct, long value)
      Unsafe version of srcHeight.
    • ndstXInBytes

      public static void ndstXInBytes(long struct, long value)
      Unsafe version of dstXInBytes.
    • ndstY

      public static void ndstY(long struct, long value)
      Unsafe version of dstY.
    • ndstZ

      public static void ndstZ(long struct, long value)
      Unsafe version of dstZ.
    • ndstLOD

      public static void ndstLOD(long struct, long value)
      Unsafe version of dstLOD.
    • ndstMemoryType

      public static void ndstMemoryType(long struct, int value)
      Unsafe version of dstMemoryType.
    • ndstHost

      public static void ndstHost(long struct, @Nullable ByteBuffer value)
      Unsafe version of dstHost.
    • ndstDevice

      public static void ndstDevice(long struct, long value)
      Unsafe version of dstDevice.
    • ndstArray

      public static void ndstArray(long struct, long value)
      Unsafe version of dstArray.
    • ndstContext

      public static void ndstContext(long struct, long value)
      Unsafe version of dstContext.
    • ndstPitch

      public static void ndstPitch(long struct, long value)
      Unsafe version of dstPitch.
    • ndstHeight

      public static void ndstHeight(long struct, long value)
      Unsafe version of dstHeight.
    • nWidthInBytes

      public static void nWidthInBytes(long struct, long value)
      Unsafe version of WidthInBytes.
    • nHeight

      public static void nHeight(long struct, long value)
      Unsafe version of Height.
    • nDepth

      public static void nDepth(long struct, long value)
      Unsafe version of Depth.