WebGPUTextureRenderer constructor
WebGPUTextureRenderer(
- dynamic renderer, [
- dynamic options
Implementation
WebGPUTextureRenderer(renderer, [options]) {
options ??= {};
this.renderer = renderer;
// @TODO: Consider to introduce WebGPURenderTarget or rename WebGLRenderTarget to just RenderTarget
this.renderTarget = new WebGLRenderTarget(1, 1, options);
}