# layerMask

> A value that indicates which layers are accepted by this testing configuration.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int layerMask
```

### Remarks

If a Renderer's layer is not matching the layer mask then the test fails.

If all layers are accepted, use -1 for this value.
