Class ktxTextureCreateInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<ktxTextureCreateInfo>, NativeResource, Pointer
Enclosing class:
ktxTextureCreateInfo

public static class ktxTextureCreateInfo.Buffer extends StructBuffer<ktxTextureCreateInfo,ktxTextureCreateInfo.Buffer> implements NativeResource
An array of ktxTextureCreateInfo structs.
  • Constructor Details

    • Buffer

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

    • glInternalformat

      public int glInternalformat()
      Returns:
      the value of the glInternalformat field.
    • vkFormat

      public int vkFormat()
      Returns:
      the value of the vkFormat field.
    • pDfd

      public @Nullable IntBuffer pDfd(int capacity)
      Returns:
      a IntBuffer view of the data pointed to by the pDfd field.
    • baseWidth

      public int baseWidth()
      Returns:
      the value of the baseWidth field.
    • baseHeight

      public int baseHeight()
      Returns:
      the value of the baseHeight field.
    • baseDepth

      public int baseDepth()
      Returns:
      the value of the baseDepth field.
    • numDimensions

      public int numDimensions()
      Returns:
      the value of the numDimensions field.
    • numLevels

      public int numLevels()
      Returns:
      the value of the numLevels field.
    • numLayers

      public int numLayers()
      Returns:
      the value of the numLayers field.
    • numFaces

      public int numFaces()
      Returns:
      the value of the numFaces field.
    • isArray

      public boolean isArray()
      Returns:
      the value of the isArray field.
    • generateMipmaps

      public boolean generateMipmaps()
      Returns:
      the value of the generateMipmaps field.
    • glInternalformat

      public ktxTextureCreateInfo.Buffer glInternalformat(int value)
      Sets the specified value to the glInternalformat field.
    • vkFormat

      public ktxTextureCreateInfo.Buffer vkFormat(int value)
      Sets the specified value to the vkFormat field.
    • pDfd

      public ktxTextureCreateInfo.Buffer pDfd(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the pDfd field.
    • baseWidth

      public ktxTextureCreateInfo.Buffer baseWidth(int value)
      Sets the specified value to the baseWidth field.
    • baseHeight

      public ktxTextureCreateInfo.Buffer baseHeight(int value)
      Sets the specified value to the baseHeight field.
    • baseDepth

      public ktxTextureCreateInfo.Buffer baseDepth(int value)
      Sets the specified value to the baseDepth field.
    • numDimensions

      public ktxTextureCreateInfo.Buffer numDimensions(int value)
      Sets the specified value to the numDimensions field.
    • numLevels

      public ktxTextureCreateInfo.Buffer numLevels(int value)
      Sets the specified value to the numLevels field.
    • numLayers

      public ktxTextureCreateInfo.Buffer numLayers(int value)
      Sets the specified value to the numLayers field.
    • numFaces

      public ktxTextureCreateInfo.Buffer numFaces(int value)
      Sets the specified value to the numFaces field.
    • isArray

      public ktxTextureCreateInfo.Buffer isArray(boolean value)
      Sets the specified value to the isArray field.
    • generateMipmaps

      public ktxTextureCreateInfo.Buffer generateMipmaps(boolean value)
      Sets the specified value to the generateMipmaps field.