UniformSlot.sampler constructor

UniformSlot.sampler(
  1. String name
)

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 sampler uniforms in shaders.

Implementation

UniformSlot.sampler(String name) : this._(name, {}, UniformSampler.new);