Class CUDA_ARRAY_SPARSE_PROPERTIES.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_ARRAY_SPARSE_PROPERTIES.Buffer>
org.lwjgl.system.StructBuffer<CUDA_ARRAY_SPARSE_PROPERTIES,CUDA_ARRAY_SPARSE_PROPERTIES.Buffer>
org.lwjgl.cuda.CUDA_ARRAY_SPARSE_PROPERTIES.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUDA_ARRAY_SPARSE_PROPERTIES>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUDA_ARRAY_SPARSE_PROPERTIES

public static class CUDA_ARRAY_SPARSE_PROPERTIES.Buffer extends org.lwjgl.system.StructBuffer<CUDA_ARRAY_SPARSE_PROPERTIES,CUDA_ARRAY_SPARSE_PROPERTIES.Buffer> implements org.lwjgl.system.NativeResource
An array of CUDA_ARRAY_SPARSE_PROPERTIES structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUDA_ARRAY_SPARSE_PROPERTIES.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CUDA_ARRAY_SPARSE_PROPERTIES.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer tileExtent_width(int value)
      Sets the specified value to the width field.
    • tileExtent_height

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

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

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

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

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

      Copies the specified IntBuffer to the reserved field.
    • reserved

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