The GPUDeviceManager used to create this GPURenderer
Optional
labelOptional label of this GPURenderer
HTMLElement or selector used as a container for our canvas. Could also be directly a HTMLCanvasElement | canvas element.
Optional
pixelPixel ratio to use for rendering
Optional
autoWhether to auto resize the renderer each time its GPURenderer#domElement size changes or not. It is advised to set this parameter to false
if the provided container is a HTMLCanvasElement | canvas element, and handle resizing by yourself.
Optional
preferredTexture rendering GPUTextureFormat | preferred format
Optional
alphaSet the GPUCanvasContext | context alpha mode
Optional
renderThe renderer RenderPass parameters
Whether the renderer RenderPass should handle depth. Default to true
The renderer RenderPass sample count (i.e. whether it should use multisampled antialiasing). Default to 4
The GPUColor | color values to clear to before drawing the renderer RenderPass. Default to [0, 0, 0, 0]
Parameters used to create a GPURenderer