OptionalcameraAn object defining camera perspective parameters
OptionallightsAn object defining the maximum number of light to use when creating the GPUCameraRenderer. Can be set to false to avoid creating lights and shadows buffers.
OptionalproductionFlag indicating whether we're running the production mode or not. If not, useful warnings could be logged to the console.
OptionaladapterAdditional options to use when requesting an adapter.
OptionalautoWhether the GPUDeviceManager should create its own requestAnimationFrame loop to render or not.
OptionalrequiredOptional required features representing additional functionalities to use when requesting a device.
OptionalrequestOptional limits keys to use to force the device to use the maximum supported adapter limits.
OptionallabelOptional label of this GPURenderer.
OptionalpixelPixel ratio to use for rendering.
OptionalcontextOptions used to configure this GPURenderer context. If not specified, format will be set with GPU.getPreferredCanvasFormat() and alphaMode with premultiplied.
OptionalrenderThe renderer RenderPass parameters.
OptionaluseDepth?: booleanWhether the renderer RenderPass should handle depth. Default to true.
OptionalsampleCount?: numberThe renderer RenderPass sample count (i.e. whether it should use multisampled antialiasing). Default to 4.
OptionalcolorAttachments?: [Partial<ColorAttachmentParams>, ...ColorAttachmentParams[]]Array of one or multiple ColorAttachmentParams. Useful to set a default clear value.
OptionalautoWhether the renderers created by this GPUCurtains instance should handle resizing by themselves or not.
OptionalwatchWhether this GPUCurtains instance should listen to scroll event or not.
OptionalcontainerHTMLElement or string representing an HTMLElement selector that will hold the WebGPU HTMLCanvasElement. Could be set later if not specified.
Parameters used to create a GPUCurtains