AdvancedOptionalclearWhat this attachment is cleared to when a pass clears it. Left out, the attachment takes the clear colour given with the bind, and the renderer's default colour when there is none. An integer-format attachment takes the numbers as integers.
OptionalloadSet to 'load' to keep this attachment's contents when a pass opens on the target, even when the
bind clears, or on renderer.clear(); set it back to clear the attachment again. Anything else
follows the bind's clear, and a bind with clear: false never clears an attachment, so restoring
a target (pop(), a filter handing back) can't wipe it. WebGL1 clears all attachments or none.
OptionalstoreWhether the pass keeps what it drew into this attachment ('store', the default) or drops it ('discard').
The Pixi texture to render to.
OptionalviewOptional overrides for how the GPU views the texture (e.g., viewing a specific aspect or dimension). Rarely needed for 2D, but incredibly powerful for 3D and advanced compute pipelines.
A Pixi-flavored Color Attachment that mirrors the WebGPU spec but replaces low-level JIT requirements with high-level Pixi objects (like
texture).Example