setTexture method

void setTexture(
  1. String name,
  2. Texture? texture, {
  3. SamplerOptions? sampler,
})

Assigns a texture to a sampler uniform by name.

Implementation

void setTexture(
  String name,
  gpu.Texture? texture, {
  gpu.SamplerOptions? sampler,
}) => _bindings.setTexture(name, texture, sampler: sampler);