AdvancedOptionalantialiasWhether to enable anti-aliasing. This may affect performance.
OptionalautoResizes renderer view in CSS pixels to allow for resolutions other than 1.
This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.
OptionalcanvasThe canvas to use as a view, optional.
OptionaldepthWhether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer.
OptionalheightThe height of the screen.
OptionalresolutionThe resolution / device pixel ratio of the renderer.
OptionaltransientWebGPU only, with antialias. WebGL ignores it. Discards the canvas's multisample buffers at the end of each pass
instead of writing them to memory: depth/stencil, and colour on GPUs that aren't tile-based (tile-based GPUs
already discard colour). Only for apps that never reopen the canvas pass while still needing its depth or stencil:
no filters or masks popping back onto it, no second render with clear: false.
See TextureSourceOptions.transient.
OptionalviewAlias for canvas.
OptionalwidthThe width of the screen.
Options passed to the ViewSystem