KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
Apache License 2.0
4.63k stars 402 forks source link

Add option to dump shaders #2210

Closed etang-cw closed 2 months ago

etang-cw commented 2 months ago

Adds an option to dump shaders and pipelines to a directory

When enabled, it writes the spirv and resulting msl for every shader compiled to a file named by the spirv hash

Usually a bit easier to search through than trying to look through an MVK_DEBUG=1 log, especially for pipeline link failures