Module gpu_context

Module gpu_context 

Source
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 to ChainTextures so each rendering chain can own its own feedback loop without crossing the streams. The primary chain’s textures are still owned by GpuContext for convenience — secondary chains during transitions own their own ChainTextures inside crate::RenderChain.
NoiseTexsizes
texsize_<name> values for every noise texture in the pack. Real MD2 presets read these as plain vec4<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.