UniformSlot.value constructor
Class that maps a uniform slot in such a way that it is easier to do memory allocation.
This allows the Shader to create UniformInstances that bind themselves to the shader without the shader needing to the inner workings.
Used for struct uniforms in shaders.
The fields
should be defined in order as they appear in the struct.
Implementation
UniformSlot.value(String name, Set<String> fields)
: this._(name, fields, UniformValue.new);