UniformSlot class
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.
- Inheritance
-
- Object
- Resource<
UniformSlot?> - UniformSlot
Constructors
- UniformSlot.sampler(String name)
- Class that maps a uniform slot in such a way that it is easier to do memory allocation.
-
UniformSlot.value(String name, Set<
String> fields) - Class that maps a uniform slot in such a way that it is easier to do memory allocation.
Properties
-
fields
→ Set<
String> -
The fields in the uniform and the order in which the memory should be
allocated.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The uniform slot's name.
final
- resource ↔ UniformSlot?
-
The resource data.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
) → UniformInstance -
indexOf(
String field) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited