WebGPUSampledTexture constructor
WebGPUSampledTexture(
- dynamic name,
- 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
}