Package foundry.veil.api.client.render
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.
Serializes a single field to the internal buffer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(T value, int index, ByteBuffer buffer) Writes data from the specified value to the buffer.
-
Method Details
-
write
Writes data from the specified value to the buffer.- Parameters:
value
- The value to write data fromindex
- The location to place the data atbuffer
- The buffer to write to
-