bindTexture method

  1. @override
bool bindTexture(
  1. ShaderHandle shader,
  2. String slot,
  3. TextureHandle texture, {
  4. 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;
}