Metal validation layer

Hello,


How do I enable/disable toggle Metal validation thru code? We are testing a release build but I need Metal validation for some specific senarios.

Is there an app setting I can expose so that the tester can enable it as needed?


Thanks

wa.

Replies

Wouldn't that debug feature be disabled by default in a release build?


In any case, I don't believe you can configure this as a user-facing toggle, so you may want to build a scheme with it disabled via Xcode settings first, then hand that build off for testing.

It turns out that API and shader validation, and GPU frame capture, are runtime-only options that change the behavior of frameworks when a Metal app is being run from Xcode. They are unrelated to the build phase.