Open giomasce opened 1 month ago
Not using variable descriptor counts seem to fix the issue, as does passing zero as the first push constant (which is used to address the descriptor array).
I think I ran into the same issue with Metal + SPIRV-Cross recently: https://github.com/KhronosGroup/SPIRV-Cross/issues/2337
I'm facing a similar issue: https://github.com/KhronosGroup/MoltenVK/issues/2271
Unfortunately I'm not able to replicate this running your app on M3 macOS 14.6.1 with latest MoltenVK.
The following log was generated with these env vars set:
MVK_CONFIG_DEBUG=1
MVK_CONFIG_LOG_LEVEL=4
MVK_CONFIG_TRACE_VULKAN_CALLS=1
As my previous issue, this comes from the vkd3d test suite. I converted it to pure Vulkan and made as minimal as possible. On my M2 MacBook Air this program spits out the following error:
The program passes both Vulkan and Metal validation, and I can't see any other mistake that might pass through the Vulkan validator.
Not using variable descriptor counts seem to fix the issue, as does passing zero as the first push constant (which is used to address the descriptor array).
Test program source code
```cpp // Compile with: g++ -std=c++20 -o test $(pkg-config --cflags --libs vulkan spirv-tools) test.cpp #include