Expand description
GPU context management.
Structs§
- GpuContext
- Shared GPU resources: device + queue + the procedural noise pack that
every chain samples from. Per-chain feedback textures (
render,prev,final,blur1/2/3,blur_scratch) used to live here too; they have moved toChainTexturesso each rendering chain can own its own feedback loop without crossing the streams. The primary chain’s textures are still owned byGpuContextfor convenience — secondary chains during transitions own their ownChainTexturesinsidecrate::RenderChain. - Noise
Texsizes texsize_<name>values for every noise texture in the pack. Real MD2 presets read these as plainvec4<f32>and the values never change after init (the textures are not resized), so we compute them once and emit them as WGSL constants in the comp wrapper.