WebGPUSampler constructor

WebGPUSampler(
  1. dynamic name,
  2. dynamic texture
)

Implementation

WebGPUSampler(name, texture) : super(name) {
  this.texture = texture;

  this.type = GPUBindingType.Sampler;
  this.visibility = GPUShaderStage.Fragment;

  this.samplerGPU = null; // set by the renderer
}