Class CUDA_MEMCPY3D_PEER

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • CUDA_MEMCPY3D_PEER

        public CUDA_MEMCPY3D_PEER​(java.nio.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 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
      • srcContext

        public long srcContext()
        Source context (ignored with srcMemoryType is MEMORYTYPE_ARRAY)
      • 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
      • dstContext

        public long dstContext()
        Destination context (ignored with dstMemoryType is MEMORYTYPE_ARRAY)
      • 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
      • srcHost

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

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

        public CUDA_MEMCPY3D_PEER set​(long srcXInBytes,
                                      long srcY,
                                      long srcZ,
                                      long srcLOD,
                                      int srcMemoryType,
                                      @Nullable
                                      java.nio.ByteBuffer srcHost,
                                      long srcDevice,
                                      long srcArray,
                                      long srcContext,
                                      long srcPitch,
                                      long srcHeight,
                                      long dstXInBytes,
                                      long dstY,
                                      long dstZ,
                                      long dstLOD,
                                      int dstMemoryType,
                                      @Nullable
                                      java.nio.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.
      • 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

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

        @Nullable
        public static 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​(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.
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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:
        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().
      • 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

        @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().
      • 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
                                    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.
      • 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
                                    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.
      • 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.