Class CUDA_RESOURCE_VIEW_DESC.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUDA_RESOURCE_VIEW_DESC.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_RESOURCE_VIEW_DESC.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

    • format

      public int format()
      Returns:
      the value of the format field.
    • 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.
    • firstMipmapLevel

      public int firstMipmapLevel()
      Returns:
      the value of the firstMipmapLevel field.
    • lastMipmapLevel

      public int lastMipmapLevel()
      Returns:
      the value of the lastMipmapLevel field.
    • firstLayer

      public int firstLayer()
      Returns:
      the value of the firstLayer field.
    • lastLayer

      public int lastLayer()
      Returns:
      the value of the lastLayer 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.
    • format

      public CUDA_RESOURCE_VIEW_DESC.Buffer format(int value)
      Sets the specified value to the format field.
    • width

      public CUDA_RESOURCE_VIEW_DESC.Buffer width(long value)
      Sets the specified value to the width field.
    • height

      public CUDA_RESOURCE_VIEW_DESC.Buffer height(long value)
      Sets the specified value to the height field.
    • depth

      public CUDA_RESOURCE_VIEW_DESC.Buffer depth(long value)
      Sets the specified value to the depth field.
    • firstMipmapLevel

      public CUDA_RESOURCE_VIEW_DESC.Buffer firstMipmapLevel(int value)
      Sets the specified value to the firstMipmapLevel field.
    • lastMipmapLevel

      public CUDA_RESOURCE_VIEW_DESC.Buffer lastMipmapLevel(int value)
      Sets the specified value to the lastMipmapLevel field.
    • firstLayer

      public CUDA_RESOURCE_VIEW_DESC.Buffer firstLayer(int value)
      Sets the specified value to the firstLayer field.
    • lastLayer

      public CUDA_RESOURCE_VIEW_DESC.Buffer lastLayer(int value)
      Sets the specified value to the lastLayer field.
    • reserved

      public CUDA_RESOURCE_VIEW_DESC.Buffer reserved(IntBuffer value)
      Copies the specified IntBuffer to the reserved field.
    • reserved

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