---
title: shaderValidation
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlmeshrenderpipelinedescriptor/shadervalidation
---

# shaderValidation

A value that enables or disables shader validation for the pipeline.

## Declaration

```swift
var shaderValidation: MTLShaderValidation { get set }
```

## Discussion

Discussion You can override the value using either of these environment variables: MTL_SHADER_VALIDATION_ENABLE_PIPELINES or MTL_SHADER_VALIDATION_DISABLE_PIPELINES.
