getTexture method
The texture bound to sampler name, or null when unset. The engine
binds the declared placeholder at draw time for an unset sampler, so
that placeholder is never surfaced here. Throws on an unknown sampler
name.
Implementation
gpu.Texture? getTexture(String name) {
final slot = _samplers[name];
if (slot == null) {
throw ArgumentError('Unknown sampler parameter "$name".');
}
return slot.texture;
}