Class SpvcMslShaderInterfaceVar.Buffer

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

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

    • Buffer

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

    • location

      public int location()
      Returns:
      the value of the location field.
    • format

      public int format()
      Returns:
      the value of the format field.
    • builtin

      public int builtin()
      Returns:
      the value of the builtin field.
    • vecsize

      public int vecsize()
      Returns:
      the value of the vecsize field.
    • location

      public SpvcMslShaderInterfaceVar.Buffer location(int value)
      Sets the specified value to the location field.
    • format

      public SpvcMslShaderInterfaceVar.Buffer format(int value)
      Sets the specified value to the format field.
    • builtin

      public SpvcMslShaderInterfaceVar.Buffer builtin(int value)
      Sets the specified value to the builtin field.
    • vecsize

      public SpvcMslShaderInterfaceVar.Buffer vecsize(int value)
      Sets the specified value to the vecsize field.