mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
581d7258566c77f01971c982e7409d2c2c85de34
391: Change `include_spirv` macro to accept tokens r=cwfitzgerald a=neachdainn The `include_spirv` macros was set to accept literals only. Unfortunately, this means that other macros, such as `concat` and `env` aren't accepted, making it unusable with build script-compiled shaders. This change allows those macros to be used to load the SpirV at the expense of a potentially less helpful error message as the `literal` requirement is differed to the `include_bytes` invocation. Co-authored-by: Nathan Kent <nkent2@cs.rochester.edu>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%