bindTexture method
bool
bindTexture(
- ShaderHandle shader,
- String slot,
- TextureHandle texture, {
- SamplerDescriptor? sampler,
override
Binds texture to the sampled-texture binding slot of shader, with
sampler (null meaning SamplerDescriptor.linearRepeat, as for a render
pass). False when the stage declares no such binding.
Implementation
@override
bool bindTexture(
ShaderHandle shader,
String slot,
TextureHandle texture, {
SamplerDescriptor? sampler,
}) {
commands.add(
RecordedCall('bindTexture', arguments: (name: slot, texture: texture)),
);
return true;
}