xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/metal/doc/ValidationLayers.md (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Enabling Metal validation layers
2
3To enable Metal's validation layers in both ANGLE's standalone test
4suites as well as in Chromium's GPU process, per [this
5CL](https://chromium-review.googlesource.com/c/chromium/src/+/3584863),
6set the following environment variables:
7
8```
9MTL_DEBUG_LAYER=1
10MTL_DEBUG_LAYER_VALIDATE_LOAD_ACTIONS=1
11MTL_DEBUG_LAYER_VALIDATE_STORE_ACTIONS=1
12MTL_DEBUG_LAYER_VALIDATE_UNRETAINED_RESOURCES=4
13```
14