Class CUDA_ARRAY3D_DESCRIPTOR

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

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

    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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • Width

        public long Width()
        Width of 3D array
      • Height

        public long Height()
        Height of 3D array
      • Depth

        public long Depth()
        Depth of 3D array
      • Format

        public int Format()
        Array format
      • NumChannels

        public int NumChannels()
        Channels per array element
      • Flags

        public int Flags()
        Flags
      • 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()
        Returns a new CUDA_ARRAY3D_DESCRIPTOR instance allocated with BufferUtils.
      • create

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

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

        public static CUDA_ARRAY3D_DESCRIPTOR calloc​(org.lwjgl.system.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
      • calloc

        public static CUDA_ARRAY3D_DESCRIPTOR.Buffer calloc​(int capacity,
                                                            org.lwjgl.system.MemoryStack stack)
        Returns a new CUDA_ARRAY3D_DESCRIPTOR.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
      • 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.