OptionalclearThe clear mode to use.
OptionalclearThe color to clear with.
The container to render.
OptionalflipOpt-in toggle that inverts the render's Y orientation. Defaults to false — a no-op, so existing
renders are unchanged on both WebGL and WebGPU.
Set flipY: true to invert the automatic orientation: when rendering to a texture this stores the
capture in screen orientation (the un-flipped result 3D geometry UVs expect), removing the need to
flip at sample time on every consuming material.
The projection flip and the winding/cull inversion flip together, so back-face culling of 3D content rendered into the texture stays correct.
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.
Optionaltransformthe transform to apply to the container.
The options for rendering a view.