Something that can resolve an include path to its WGSL source. Release builds use a baked slice; debug builds read from disk.
| 18 | /// Something that can resolve an include path to its WGSL source. |
| 19 | /// Release builds use a baked slice; debug builds read from disk. |
| 20 | pub trait ShaderSource { |
| 21 | fn fetch(&self, path: &str) -> Option<&str>; |
| 22 | } |
| 23 | |
| 24 | /// Build-time baked table. Populate with `include_str!` in a const |
| 25 | /// array, build a `BakedSource` with it, pass it to `process`. |
nothing calls this directly
no outgoing calls
no test coverage detected