Module pipeline_helpers

Module pipeline_helpers 

Source
Expand description

Small helpers shared by the renderer’s overlay pipelines (waveform, custom waves, custom shapes, borders, motion vectors).

Kept deliberately minimal — each pipeline still owns its own pipeline descriptor end-to-end so the bindings, vertex layout, and topology stay obvious at the call site. These helpers just remove the two pieces of literal duplication that contributed nothing to readability: the boilerplate around [wgpu::ShaderModuleDescriptor] and the additive-vs-alpha blend-state switch.

Functions§

blend_state_for 🔒
Standard MD2-style blend state for an overlay pipeline.
load_wgsl 🔒
Compile an inline WGSL source string into a [wgpu::ShaderModule] with the supplied label.