GpuTextureSource constructor

GpuTextureSource(
  1. Texture texture, {
  2. SamplerOptions? sampler,
})

Implementation

GpuTextureSource(this.texture, {gpu.SamplerOptions? sampler})
  : sampler = sampler ?? _defaultSampler(texture);