Class CUDA_ARRAY_SPARSE_PROPERTIES

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

    public class CUDA_ARRAY_SPARSE_PROPERTIES
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    CUDA array sparse properties.

    Layout

    
     struct CUDA_ARRAY_SPARSE_PROPERTIES {
         struct {
             unsigned int width;
             unsigned int height;
             unsigned int depth;
         } tileExtent;
         unsigned int miptailFirstLevel();
         unsigned long long miptailSize();
         unsigned int flags();
         unsigned int reserved[4];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TILEEXTENT, TILEEXTENT_WIDTH, TILEEXTENT_HEIGHT, TILEEXTENT_DEPTH, MIPTAILFIRSTLEVEL, MIPTAILSIZE, FLAGS, RESERVED

        The struct member offsets.
    • Constructor Detail

      • CUDA_ARRAY_SPARSE_PROPERTIES

        public CUDA_ARRAY_SPARSE_PROPERTIES​(java.nio.ByteBuffer container)
        Creates a CUDA_ARRAY_SPARSE_PROPERTIES 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
      • tileExtent_width

        public int tileExtent_width()
        width of sparse tile in elements
      • tileExtent_height

        public int tileExtent_height()
        height of sparse tile in elements
      • tileExtent_depth

        public int tileExtent_depth()
        depth of sparse tile in elements
      • miptailFirstLevel

        public int miptailFirstLevel()
        first mip level at which the mip tail begins
      • miptailSize

        public long miptailSize()
        total size of the mip tail
      • reserved

        public java.nio.IntBuffer reserved()
        Returns:
        a IntBuffer view of the reserved field.
      • reserved

        public int reserved​(int index)
        Returns:
        the value at the specified index of the reserved field.
      • reserved

        public CUDA_ARRAY_SPARSE_PROPERTIES reserved​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the reserved field.
      • reserved

        public CUDA_ARRAY_SPARSE_PROPERTIES reserved​(int index,
                                                     int value)
        Sets the specified value at the specified index of the reserved field.
      • set

        public CUDA_ARRAY_SPARSE_PROPERTIES set​(int tileExtent_width,
                                                int tileExtent_height,
                                                int tileExtent_depth,
                                                int miptailFirstLevel,
                                                long miptailSize,
                                                int flags,
                                                java.nio.IntBuffer reserved)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static int ntileExtent_width​(long struct)
        Unsafe version of tileExtent_width().
      • ntileExtent_height

        public static int ntileExtent_height​(long struct)
        Unsafe version of tileExtent_height().
      • ntileExtent_depth

        public static int ntileExtent_depth​(long struct)
        Unsafe version of tileExtent_depth().
      • nmiptailFirstLevel

        public static int nmiptailFirstLevel​(long struct)
        Unsafe version of miptailFirstLevel().
      • nmiptailSize

        public static long nmiptailSize​(long struct)
        Unsafe version of miptailSize().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nreserved

        public static java.nio.IntBuffer nreserved​(long struct)
        Unsafe version of reserved().
      • nreserved

        public static int nreserved​(long struct,
                                    int index)
        Unsafe version of reserved.
      • ntileExtent_width

        public static void ntileExtent_width​(long struct,
                                             int value)
        Unsafe version of tileExtent_width.
      • ntileExtent_height

        public static void ntileExtent_height​(long struct,
                                              int value)
        Unsafe version of tileExtent_height.
      • ntileExtent_depth

        public static void ntileExtent_depth​(long struct,
                                             int value)
        Unsafe version of tileExtent_depth.
      • nmiptailFirstLevel

        public static void nmiptailFirstLevel​(long struct,
                                              int value)
        Unsafe version of miptailFirstLevel.
      • nmiptailSize

        public static void nmiptailSize​(long struct,
                                        long value)
        Unsafe version of miptailSize.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nreserved

        public static void nreserved​(long struct,
                                     java.nio.IntBuffer value)
        Unsafe version of reserved.
      • nreserved

        public static void nreserved​(long struct,
                                     int index,
                                     int value)
        Unsafe version of reserved.