MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / ShaderSource

Interface ShaderSource

native/shared/src/renderer/shader_include.rs:20–22  ·  view source on GitHub ↗

Something that can resolve an include path to its WGSL source. Release builds use a baked slice; debug builds read from disk.

Source from the content-addressed store, hash-verified

18/// Something that can resolve an include path to its WGSL source.
19/// Release builds use a baked slice; debug builds read from disk.
20pub 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`.

Callers

nothing calls this directly

Implementers 1

shader_include.rsnative/shared/src/renderer/shader_incl

Calls

no outgoing calls

Tested by

no test coverage detected