macro_rules! include_wgsl { ($($token:tt)*) => { ... }; }
Expand description
Load WGSL source code from a file at compile time.
The loaded path is relative to the path of the file containing the macro call, in the same way
as include_str!
operates.
ⓘ
fn main() {
let module: ShaderModuleDescriptor = include_wgsl!("shader.wgsl");
}