Class SpvcMslVertexAttribute.Buffer

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

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

    • Buffer

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

      public int msl_buffer()
      Returns:
      the value of the msl_buffer field.
    • msl_offset

      public int msl_offset()
      Returns:
      the value of the msl_offset field.
    • msl_stride

      public int msl_stride()
      Returns:
      the value of the msl_stride field.
    • per_instance

      public boolean per_instance()
      Returns:
      the value of the per_instance field.
    • format

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

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

      public SpvcMslVertexAttribute.Buffer location(int value)
      Sets the specified value to the location field.
    • msl_buffer

      public SpvcMslVertexAttribute.Buffer msl_buffer(int value)
      Sets the specified value to the msl_buffer field.
    • msl_offset

      public SpvcMslVertexAttribute.Buffer msl_offset(int value)
      Sets the specified value to the msl_offset field.
    • msl_stride

      public SpvcMslVertexAttribute.Buffer msl_stride(int value)
      Sets the specified value to the msl_stride field.
    • per_instance

      public SpvcMslVertexAttribute.Buffer per_instance(boolean value)
      Sets the specified value to the per_instance field.
    • format

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

      public SpvcMslVertexAttribute.Buffer builtin(int value)
      Sets the specified value to the builtin field.