concinnity_render/
shaders.rs1pub const SOURCES: &[(&str, &str)] = &[
12 ("auto_exposure.slang", AUTO_EXPOSURE),
13 ("bloom.slang", BLOOM),
14 ("composite.slang", COMPOSITE),
15 ("decal.slang", DECAL),
16 ("fog.slang", FOG),
17 ("fullscreen.slang", FULLSCREEN),
18 ("gbuffer_prepass.slang", GBUFFER_PREPASS),
19 ("glass.slang", GLASS),
20 ("glass_mesh.slang", GLASS_MESH),
21 ("hiz_build.slang", HIZ_BUILD),
22 ("light_cull.slang", LIGHT_CULL),
23 ("line.slang", LINE),
24 ("main_bindless.slang", MAIN_BINDLESS),
25 ("object_common.slang", OBJECT_COMMON),
26 ("particle.slang", PARTICLE),
27 ("particle_simulate.slang", PARTICLE_SIMULATE),
28 ("particle_types.slang", PARTICLE_TYPES),
29 ("post_common.slang", POST_COMMON),
30 ("probe_common.slang", PROBE_COMMON),
31 ("probe_types.slang", PROBE_TYPES),
32 ("reflection.slang", REFLECTION),
33 ("rt_reflections.slang", RT_REFLECTIONS),
34 ("rt_skin.slang", RT_SKIN),
35 ("rt_trace.slang", RT_TRACE),
36 ("rt_types.slang", RT_TYPES),
37 ("shadow.slang", SHADOW),
38 ("ssao.slang", SSAO),
39 ("ssgi.slang", SSGI),
40 ("ssr.slang", SSR),
41 ("taa.slang", TAA),
42 ("text.slang", TEXT),
43 ("water.slang", WATER),
44];
45
46pub fn embedded(file: &str) -> Option<&'static str> {
48 SOURCES
49 .iter()
50 .find_map(|(name, text)| (*name == file).then_some(*text))
51}
52
53pub const AUTO_EXPOSURE: &str = include_str!("shaders/auto_exposure.slang");
55pub const BLOOM: &str = include_str!("shaders/bloom.slang");
57pub const COMPOSITE: &str = include_str!("shaders/composite.slang");
59pub const DECAL: &str = include_str!("shaders/decal.slang");
61pub const FOG: &str = include_str!("shaders/fog.slang");
63pub const FULLSCREEN: &str = include_str!("shaders/fullscreen.slang");
65pub const GBUFFER_PREPASS: &str = include_str!("shaders/gbuffer_prepass.slang");
67pub const GLASS: &str = include_str!("shaders/glass.slang");
69pub const GLASS_MESH: &str = include_str!("shaders/glass_mesh.slang");
71pub const HIZ_BUILD: &str = include_str!("shaders/hiz_build.slang");
73pub const LIGHT_CULL: &str = include_str!("shaders/light_cull.slang");
75pub const LINE: &str = include_str!("shaders/line.slang");
77pub const MAIN_BINDLESS: &str = include_str!("shaders/main_bindless.slang");
79pub const OBJECT_COMMON: &str = include_str!("shaders/object_common.slang");
81pub const PARTICLE: &str = include_str!("shaders/particle.slang");
83pub const PARTICLE_SIMULATE: &str = include_str!("shaders/particle_simulate.slang");
85pub const PARTICLE_TYPES: &str = include_str!("shaders/particle_types.slang");
87pub const POST_COMMON: &str = include_str!("shaders/post_common.slang");
89pub const PROBE_COMMON: &str = include_str!("shaders/probe_common.slang");
91pub const PROBE_TYPES: &str = include_str!("shaders/probe_types.slang");
93pub const REFLECTION: &str = include_str!("shaders/reflection.slang");
95pub const RT_REFLECTIONS: &str = include_str!("shaders/rt_reflections.slang");
97pub const RT_SKIN: &str = include_str!("shaders/rt_skin.slang");
99pub const RT_TRACE: &str = include_str!("shaders/rt_trace.slang");
101pub const RT_TYPES: &str = include_str!("shaders/rt_types.slang");
103pub const SHADOW: &str = include_str!("shaders/shadow.slang");
105pub const SSAO: &str = include_str!("shaders/ssao.slang");
107pub const SSGI: &str = include_str!("shaders/ssgi.slang");
109pub const SSR: &str = include_str!("shaders/ssr.slang");
111pub const TAA: &str = include_str!("shaders/taa.slang");
113pub const TEXT: &str = include_str!("shaders/text.slang");
115pub const WATER: &str = include_str!("shaders/water.slang");