Class SpvcMslShaderInterfaceVar2.Buffer

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

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

    • Buffer

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

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

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

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

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

      public SpvcMslShaderInterfaceVar2.Buffer vecsize(int value)
      Sets the specified value to the vecsize field.
    • rate

      public SpvcMslShaderInterfaceVar2.Buffer rate(int value)
      Sets the specified value to the rate field.