Redirect a sprite renderer's output to an offscreen render Texture2Dtarget (for
render-to-texture / post-processing), or pass null to render to the swapchain (the
default). Pair with createRenderTexture2D at its default format and the renderer's
target size. The target's texture must be the engine's swapchain format: sprite pipelines
are baked with engine.format, so a target of any OTHER format fails WebGPU validation at
render-pass begin. A second renderer can then sample that texture (e.g. a fullscreen
custom-shader layer) and present it. Renderers registered later run later, so register the
offscreen scene pass before the presenting pass.
Redirect a sprite renderer's output to an offscreen render Texture2D
target(for render-to-texture / post-processing), or passnullto render to the swapchain (the default). Pair with createRenderTexture2D at its default format and the renderer's target size. The target's texture must be the engine's swapchain format: sprite pipelines are baked withengine.format, so a target of any OTHER format fails WebGPU validation at render-pass begin. A second renderer can then sample that texture (e.g. a fullscreen custom-shader layer) and present it. Renderers registered later run later, so register the offscreen scene pass before the presenting pass.