Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling logging GLSL shader code during shader conversion logging. #2334

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

billhollings
Copy link
Contributor

Logging estimated GLSL shader code by default clutters the log with info that is not necessarily helpful, and it can occasionally result in a crash during the generation of GLSL, even though the MSL is correctly generated.

  • Add MVKConfiguration::shaderLogEstimatedGLSL, and environment variable MVK_CONFIG_SHADER_LOG_ESTIMATED_GLSL, to enable or disable the logging of estimated GLSL code, and disable it by default.
  • Clean up alphabetic order of MoltenVK_Configuration_Parameters.md doc.

…ogging.

Logging estimated GLSL shader code by default clutters the log with info
that is not necessarily helpful, and it can occasionally result in a crash
during the generation of GLSL, even though the MSL is correctly generated.

- Add MVKConfiguration::shaderLogEstimatedGLSL, and environment variable
  MVK_CONFIG_SHADER_LOG_ESTIMATED_GLSL, to enable or disable the logging
  of estimated GLSL code, and disable it by default.
- Clean up alphabetic order of MoltenVK_Configuration_Parameters.md doc.
@billhollings billhollings merged commit 2f7ae76 into KhronosGroup:main Sep 12, 2024
6 checks passed
@billhollings billhollings deleted the disable-log-glsl branch September 12, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants