Class CUDA_ARRAY3D_DESCRIPTOR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CUDA_ARRAY3D_DESCRIPTOR
    extends Struct
    implements NativeResource
    3D array descriptor.

    Member documentation

    • Width – Width of 3D array
    • Height – Height of 3D array
    • Depth – Depth of 3D array
    • Format – Array format
    • NumChannels – Channels per array element
    • Flags – Flags

    Layout

    
     struct CUDA_ARRAY3D_DESCRIPTOR {
         size_t Width;
         size_t Height;
         size_t Depth;
         CUarray_format Format;
         unsigned int NumChannels;
         unsigned int Flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • WIDTH, HEIGHT, DEPTH, FORMAT, NUMCHANNELS, FLAGS

        The struct member offsets.
    • Constructor Detail

      • CUDA_ARRAY3D_DESCRIPTOR

        public CUDA_ARRAY3D_DESCRIPTOR​(java.nio.ByteBuffer container)
        Creates a CUDA_ARRAY3D_DESCRIPTOR 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • Width

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

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

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

        public int Format()
        Returns the value of the Format field.
      • NumChannels

        public int NumChannels()
        Returns the value of the NumChannels field.
      • Flags

        public int Flags()
        Returns the value of the Flags field.
      • NumChannels

        public CUDA_ARRAY3D_DESCRIPTOR NumChannels​(int value)
        Sets the specified value to the NumChannels field.
      • set

        public CUDA_ARRAY3D_DESCRIPTOR set​(long Width,
                                           long Height,
                                           long Depth,
                                           int Format,
                                           int NumChannels,
                                           int Flags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static CUDA_ARRAY3D_DESCRIPTOR callocStack()
        Returns a new CUDA_ARRAY3D_DESCRIPTOR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CUDA_ARRAY3D_DESCRIPTOR mallocStack​(MemoryStack stack)
        Returns a new CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CUDA_ARRAY3D_DESCRIPTOR callocStack​(MemoryStack stack)
        Returns a new CUDA_ARRAY3D_DESCRIPTOR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nWidth

        public static long nWidth​(long struct)
        Unsafe version of Width().
      • nHeight

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

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

        public static int nFormat​(long struct)
        Unsafe version of Format().
      • nNumChannels

        public static int nNumChannels​(long struct)
        Unsafe version of NumChannels().
      • nFlags

        public static int nFlags​(long struct)
        Unsafe version of Flags().
      • nWidth

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

        public static void nFormat​(long struct,
                                   int value)
        Unsafe version of Format.
      • nNumChannels

        public static void nNumChannels​(long struct,
                                        int value)
        Unsafe version of NumChannels.
      • nFlags

        public static void nFlags​(long struct,
                                  int value)
        Unsafe version of Flags.