1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! The shader `Platform` vocabulary: which compiled shader form a rendering
//! backend consumes. The enum is pure data with no ambient resolution of its
//! own, so it sits in the runtime foundation and every caller states the
//! platform it means -- the engine names the backend it was built for, and the
//! build pipeline is told the backend it cooks for.
/// The shader targets the engine compiles for. Each variant matches one render
/// backend: Metal (MSL), DirectX (DXIL), or Vulkan (SPIR-V).