getImageSampler method
- String name
Access the ImageSamplerSlot binding associated with the sampler named
name.
The index provided to setImageSampler is the index of the sampler uniform defined in the fragment program, excluding all non-sampler uniforms.
Implementation
ImageSamplerSlot getImageSampler(String name) {
final int index = _program._getImageSamplerIndex(name);
final slot = ImageSamplerSlot._(this, name, index);
_samplers.removeWhere((WeakReference<ImageSamplerSlot> ref) => ref.target == null);
_samplers.add(WeakReference<ImageSamplerSlot>(slot));
return slot;
}