WebGPUTextureRenderer constructor

WebGPUTextureRenderer(
  1. dynamic renderer, [
  2. 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);
}