Class CUDA_ARRAY_SPARSE_PROPERTIES

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_ARRAY_SPARSE_PROPERTIES>
org.lwjgl.cuda.CUDA_ARRAY_SPARSE_PROPERTIES
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUDA_ARRAY_SPARSE_PROPERTIES extends org.lwjgl.system.Struct<CUDA_ARRAY_SPARSE_PROPERTIES> implements org.lwjgl.system.NativeResource

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 Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TILEEXTENT

      public static final int TILEEXTENT
      The struct member offsets.
    • TILEEXTENT_WIDTH

      public static final int TILEEXTENT_WIDTH
      The struct member offsets.
    • TILEEXTENT_HEIGHT

      public static final int TILEEXTENT_HEIGHT
      The struct member offsets.
    • TILEEXTENT_DEPTH

      public static final int TILEEXTENT_DEPTH
      The struct member offsets.
    • MIPTAILFIRSTLEVEL

      public static final int MIPTAILFIRSTLEVEL
      The struct member offsets.
    • MIPTAILSIZE

      public static final int MIPTAILSIZE
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • RESERVED

      public static final int RESERVED
      The struct member offsets.
  • Constructor Details

    • CUDA_ARRAY_SPARSE_PROPERTIES

      public CUDA_ARRAY_SPARSE_PROPERTIES(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUDA_ARRAY_SPARSE_PROPERTIES>
    • tileExtent_width

      public int tileExtent_width()
      Returns:
      the value of the tileExtent.width field.
    • tileExtent_height

      public int tileExtent_height()
      Returns:
      the value of the tileExtent.height field.
    • tileExtent_depth

      public int tileExtent_depth()
      Returns:
      the value of the tileExtent.depth field.
    • miptailFirstLevel

      public int miptailFirstLevel()
      Returns:
      the value of the miptailFirstLevel field.
    • miptailSize

      public long miptailSize()
      Returns:
      the value of the miptailSize field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • reserved

      public 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.
    • tileExtent_width

      public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_width(int value)
      Sets the specified value to the width field.
    • tileExtent_height

      public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_height(int value)
      Sets the specified value to the height field.
    • tileExtent_depth

      public CUDA_ARRAY_SPARSE_PROPERTIES tileExtent_depth(int value)
      Sets the specified value to the depth field.
    • miptailFirstLevel

      public CUDA_ARRAY_SPARSE_PROPERTIES miptailFirstLevel(int value)
      Sets the specified value to the miptailFirstLevel field.
    • miptailSize

      public CUDA_ARRAY_SPARSE_PROPERTIES miptailSize(long value)
      Sets the specified value to the miptailSize field.
    • flags

      public CUDA_ARRAY_SPARSE_PROPERTIES flags(int value)
      Sets the specified value to the flags field.
    • reserved

      public CUDA_ARRAY_SPARSE_PROPERTIES reserved(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, IntBuffer reserved)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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.
    • createSafe

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

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

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

      public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer create(int capacity)
      Returns a new CUDA_ARRAY_SPARSE_PROPERTIES.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

      public static @Nullable CUDA_ARRAY_SPARSE_PROPERTIES.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • 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
    • malloc

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

      public static CUDA_ARRAY_SPARSE_PROPERTIES.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_ARRAY_SPARSE_PROPERTIES.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      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 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, IntBuffer value)
      Unsafe version of reserved.
    • nreserved

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