You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vulkano-shaders macro crashes when the shader code contains a definition of a buffer with an array of structs which have arrays in them. The compilation error given by cargo build:
error: proc macro panicked
--> src\main.rs:1:1
|
1 | / vulkano_shaders::shader!{
2 | | ty: "fragment",
3 | | src: "#version 460
4 | |
... |
30 | | },
31 | | }
| |_^
|
= help: message: called `Option::unwrap()` on a `None` value
error: could not compile `project` due to previous error
This code appears to compile just fine on several glsl compilers (with target set to vulkan), which leads me to believe the macro crashes during the creation of types defined in the shader.
Issue
The vulkano-shaders macro crashes when the shader code contains a definition of a buffer with an array of structs which have arrays in them. The compilation error given by
cargo build
:This code appears to compile just fine on several glsl compilers (with target set to vulkan), which leads me to believe the macro crashes during the creation of types defined in the shader.
#1220 might be a related issue.
The text was updated successfully, but these errors were encountered: