Class CUDA_MEMCPY3D

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SRCXINBYTES, SRCY, SRCZ, SRCLOD, SRCMEMORYTYPE, SRCHOST, SRCDEVICE, SRCARRAY, RESERVED0, SRCPITCH, SRCHEIGHT, DSTXINBYTES, DSTY, DSTZ, DSTLOD, DSTMEMORYTYPE, DSTHOST, DSTDEVICE, DSTARRAY, RESERVED1, DSTPITCH, DSTHEIGHT, WIDTHINBYTES, HEIGHT, DEPTH

        The struct member offsets.
    • Constructor Detail

      • CUDA_MEMCPY3D

        public CUDA_MEMCPY3D​(java.nio.ByteBuffer container)
        Creates a CUDA_MEMCPY3D 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 Detail

      • sizeof

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

        public long srcXInBytes()
        Source X in bytes
      • srcY

        public long srcY()
        Source Y
      • srcZ

        public long srcZ()
        Source Z
      • srcLOD

        public long srcLOD()
        Source LOD
      • srcMemoryType

        public int srcMemoryType()
        Source memory type (host, device, array)
      • srcHost

        @Nullable
        public java.nio.ByteBuffer srcHost​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        Source host pointer
      • srcDevice

        public long srcDevice()
        Source device pointer
      • srcArray

        public long srcArray()
        Source array reference
      • reserved0

        public long reserved0()
        Must be NULL
      • srcPitch

        public long srcPitch()
        Source pitch (ignored when src is array)
      • srcHeight

        public long srcHeight()
        Source height (ignored when src is array; may be 0 if Depth==1)
      • dstXInBytes

        public long dstXInBytes()
        Destination X in bytes
      • dstY

        public long dstY()
        Destination Y
      • dstZ

        public long dstZ()
        Destination Z
      • dstLOD

        public long dstLOD()
        Destination LOD
      • dstMemoryType

        public int dstMemoryType()
        Destination memory type (host, device, array)
      • dstHost

        @Nullable
        public java.nio.ByteBuffer dstHost​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        Destination host pointer
      • dstDevice

        public long dstDevice()
        Destination device pointer
      • dstArray

        public long dstArray()
        Destination array reference
      • reserved1

        public long reserved1()
        Must be NULL
      • dstPitch

        public long dstPitch()
        Destination pitch (ignored when dst is array)
      • dstHeight

        public long dstHeight()
        Destination height (ignored when dst is array; may be 0 if Depth==1)
      • WidthInBytes

        public long WidthInBytes()
        Width of 3D memory copy in bytes
      • Height

        public long Height()
        Height of 3D memory copy
      • Depth

        public long Depth()
        Depth of 3D memory copy
      • srcY

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

        public CUDA_MEMCPY3D srcZ​(long value)
        Sets the specified value to the srcZ() field.
      • srcHost

        public CUDA_MEMCPY3D srcHost​(@Nullable
                                     java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the srcHost(int) field.
      • dstY

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

        public CUDA_MEMCPY3D dstZ​(long value)
        Sets the specified value to the dstZ() field.
      • dstHost

        public CUDA_MEMCPY3D dstHost​(@Nullable
                                     java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the dstHost(int) field.
      • set

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

        public CUDA_MEMCPY3D set​(CUDA_MEMCPY3D src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

        public static CUDA_MEMCPY3D calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new CUDA_MEMCPY3D 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.Buffer malloc​(int capacity,
                                                  org.lwjgl.system.MemoryStack stack)
        Returns a new CUDA_MEMCPY3D.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static CUDA_MEMCPY3D.Buffer calloc​(int capacity,
                                                  org.lwjgl.system.MemoryStack stack)
        Returns a new CUDA_MEMCPY3D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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

        @Nullable
        public static java.nio.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().
      • nreserved0

        public static long nreserved0​(long struct)
        Unsafe version of reserved0().
      • 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

        @Nullable
        public static java.nio.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().
      • nreserved1

        public static long nreserved1​(long struct)
        Unsafe version of reserved1().
      • 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
                                    java.nio.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.
      • nreserved0

        public static void nreserved0​(long struct,
                                      long value)
        Unsafe version of reserved0.
      • 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
                                    java.nio.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.
      • nreserved1

        public static void nreserved1​(long struct,
                                      long value)
        Unsafe version of reserved1.
      • 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.