Open
Description
Similar to the cc-rs
crate, it would be nice to compile shaders automatically in one of these ways:
-
build script helper crate (probably looks very similar to
cc-rs
in practice)-
include_bytes!(concat!(env!("OUT_DIR"), "/shader.shbin"))
? looks kinda messy but would work -
somehow include built shader bin in romfs – maybe hard link / symlink can do this?
-
-
Proc macro? Basically would run the shader compiler and spit out bytes... probably would increase compile time poorly