macos: enable Metal shader logging

This enables the compile options and Xcode configuration so that logging
in Metal shaders shows up in our Xcode debug console. This doesn't add
any log messages, but makes it so that when we iterate on the shaders in
the future, we can add and see logs to help us out.
This commit is contained in:
Mitchell Hashimoto
2024-11-19 18:41:55 -08:00
parent 14f603e691
commit aad101565a
5 changed files with 86 additions and 47 deletions

View File

@@ -55,6 +55,23 @@
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
<EnvironmentVariables>
<EnvironmentVariable
key = "MTL_LOG_BUFFER_SIZE"
value = "4096"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "MTL_LOG_LEVEL"
value = "MTLLogLevelDebug"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "MTL_LOG_TO_STDERR"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"