AdvancedOptionalclearThe clear mode to use.
OptionalclearThe color to clear with.
Optional AdvancedlayerLayer to render/clear to when the target has layers: an array layer of a 2D array (arrayLayerCount > 1),
a face of a cube map, or a depth slice of a 3D texture (depth).
This maps to WebGPU's GPUTextureViewDescriptor.baseArrayLayer for arrays and cube faces, and to
GPURenderPassColorAttachment.depthSlice for 3D textures.
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.