Skip to main content

FRAGMENTS

Constant FRAGMENTS 

Source
pub const FRAGMENTS: &[(&str, &str)];
Expand description

The shared fragments, as (marker, file). A shader carrying a marker has the named file’s text spliced in at that point.

Two of them come in pairs, because a shader’s resource bindings sit between the halves: PROBE_TYPES / RT_TYPES declare the records a binding names, and PROBE_COMMON / RT_TRACE the code that reads the bound resources. PARTICLE_TYPES is the one shared by two halves of a system rather than of a shader: the simulation kernel writes the pool the render pair reads.