AdvancedOptionalclearThe clear mode to use.
OptionalclearThe color to clear with.
Optional AdvancedlayerArray layer index to render/clear to when the target is an array-backed texture source (e.g. arrayLayerCount > 1).
This maps to WebGPU's GPUTextureViewDescriptor.baseArrayLayer when creating render-attachment views.
Optional AdvancedmipMip level to render/clear to when the target is a texture-backed render surface.
0
Note: When rendering to a Texture target, Pixi renders into the underlying TextureSource
(via an internal RenderTarget). The texture's frame is interpreted in mip 0 space and is scaled/clamped
to the requested mip level.
OptionaltargetThe render target to render. if this target is a canvas and you are using the WebGL renderer,
please ensure you have set multiView to true on renderer.
The options for clearing the render target.