How to output MSL shader source code #1282
-
Hello I'm working on a tool that uses MoltenVK, however we're running into an issue where the SPIRV we provide is valid, however the MSL that is being generated is not. I'm currently trying to investigate and am having trouble replicating the compiled source code using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There appears to be logging logic in MoltenVK/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm Lines 300 to 301 in 82ab40e EDIT: and based on this, what you need to do is set the |
Beta Was this translation helpful? Give feedback.
There appears to be logging logic in
MVKShaderModule::convert
:MoltenVK/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm
Line 276 in 82ab40e
MoltenVK/MoltenVK/MoltenVK/GPUObjects/MVKShaderModule.mm
Lines 300 to 301 in 82ab40e
EDIT: and based on this, what you need to do is set the
MKV_DEBUG=1
environment variable, I believe:MoltenVK/MoltenVK/MoltenVK/Utility/MVKEnvironment.cpp
Line 30 in 84c6095