From the manual https://keith.github.io/xcode-man-pages/MetalValidation.1.html, I figure out that, when I launch my app with thos environment variables, It may work. this is my current environment variables And I really get the API Validation Message from the logs like this:
This is my another test , I do not set the Metal_DEBUG_ERROR_MODE, METAL_ERROR_MODE and METAL_ERROR_CHECK_EXTENDED_MODE, just let it as the default value, then I got these results: 1.the app trigger a crash when met with API Validation Failure 2.the Failure message is too simple to fix the bug:
Here is my **problem: Can I trigger a crash when the API Validation Fail, and get the API Validation detail message by setting the environment variables? **