setImageSampler method
Sets the sampler uniform at index
to image
.
The index provided to setImageSampler is the index of the sampler uniform defined in the fragment program, excluding all non-sampler uniforms.
All the sampler uniforms that a shader expects must be provided or the results will be undefined.
Implementation
void setImageSampler(int index, Image image) {
assert(!debugDisposed, 'Tried to access uniforms on a disposed Shader: $this');
_setImageSampler(index, image._image);
}