WebGPUSampledTexture constructor

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

Implementation

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

  this.dimension = GPUTextureViewDimension.TwoD;

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

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