Module chain_textures

Module chain_textures 

Source
Expand description

Per-chain feedback textures.

Each rendering chain owns its own warp output, previous-frame copy, final comp output, and three-level blur pyramid (plus a scratch horizontal-pass target). Sharing these between chains would cross the feedback streams during preset transitions — the old preset’s accumulated warp output must keep evolving on the secondary chain while the new preset fills the primary chain. Procedural noise stays shared in GpuContext because it is constant for the program lifetime.

Sizes track RenderConfig::{width, height}; [Self::resize] rebuilds every texture when the host window resizes.

Structs§

ChainTextures
All resolution-dependent textures consumed and produced by one rendering chain.

Functions§

make_blur_texture_at 🔒
Allocate a blur-stage texture at an explicit (width, height) — the downsampled pyramid wants each level smaller than the last, so the helper takes the dimensions directly rather than deriving them from config. Texture format follows config.texture_format so the blur output composes cleanly with render_texture / final_texture in the comp pass.
make_color_texture 🔒