Interface VeilShaderBufferLayout.FieldSerializer<T>

Type Parameters:
T - The type of data to write to the buffer
Enclosing class:
VeilShaderBufferLayout<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface VeilShaderBufferLayout.FieldSerializer<T>
Serializes a single field to the internal buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(T value, int index, ByteBuffer buffer)
    Writes data from the specified value to the buffer.
  • Method Details

    • write

      void write(T value, int index, ByteBuffer buffer)
      Writes data from the specified value to the buffer.
      Parameters:
      value - The value to write data from
      index - The location to place the data at
      buffer - The buffer to write to