(&self, path: &str)
| 28 | } |
| 29 | impl<'a> ShaderSource for BakedSource<'a> { |
| 30 | fn fetch(&self, path: &str) -> Option<&str> { |
| 31 | self.entries.iter().find(|(p, _)| *p == path).map(|(_, s)| *s) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /// Errors from the preprocessor. Always recoverable (caller keeps the |