macro_rules! raw_shader {
    (
        $vertex_data:expr,
        $fragment_data:expr,
    ) => { ... };
}
Expand description

Loads a shader from glsl bytes. Takes &[u8] and returns Shaders. Those shaders can be used when making materials.

Safety

Doesn’t validate the rightness of the given data. Crashes the program in case the bytes provided aren’t spirv.