Hash :
63d9675f
Author :
Date :
2023-01-25T18:07:54
Add documentation for enabling Metal validation layers. Bug: angleproject:7952 Change-Id: I05b03d8db2b97b23616a7e41860e063eb992dc48 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4195840 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Auto-Submit: Kenneth Russell <kbr@chromium.org>
To enable Metal’s validation layers in both ANGLE’s standalone test suites as well as in Chromium’s GPU process, per this CL, set the following environment variables:
MTL_DEBUG_LAYER=1
MTL_DEBUG_LAYER_VALIDATE_LOAD_ACTIONS=1
MTL_DEBUG_LAYER_VALIDATE_STORE_ACTIONS=1
MTL_DEBUG_LAYER_VALIDATE_UNRETAINED_RESOURCES=4
# Enabling Metal validation layers
To enable Metal's validation layers in both ANGLE's standalone test
suites as well as in Chromium's GPU process, per [this
CL](https://chromium-review.googlesource.com/c/chromium/src/+/3584863),
set the following environment variables:
```
MTL_DEBUG_LAYER=1
MTL_DEBUG_LAYER_VALIDATE_LOAD_ACTIONS=1
MTL_DEBUG_LAYER_VALIDATE_STORE_ACTIONS=1
MTL_DEBUG_LAYER_VALIDATE_UNRETAINED_RESOURCES=4
```