Closed p0lunin closed 2 years ago
One quick fix around this is just to patch vulkano-shaders/src/enums.rs
to include MemoryModelVulkan
and VulkanMemoryModel
. Another workaround is to tell SPIR-V builder to use MemoryModel::GLSL450
(though this might make the shaders slower). For my own usecase, I just patched vulkano to ignore unknown capabilities and added MemoryModelVulkan
: see this commit and this commit.
However, since #1500 would update vulkano's older SPIR-V headers anyway, these workarounds hopefully might not be needed soon :)
I'm going to assume this is no longer an issue, now that the SPIR-V parser is auto-generated.
Repository with bug: https://github.com/p0lunin/vulkano-rust-gpu-bug
Error from proc-macro:
I think rust-gpu sets the constant
Capability
to 5345 which denotes theVulkan memory model
.