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.
Implementationvoid setImageSampler(int index, Image image) {
assert(!debugDisposed, 'Tried to access uniforms on a disposed Shader: $this');
assert(!image.debugDisposed, 'Image has been disposed');
_setImageSampler(index, image._image);
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4