# IsValidationSupported()

> Returns whether the current graphics backend exposes a validation implementation.

## Definition

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

```csharp
public static bool IsValidationSupported()
```

### Returns

| Type                                                          | Description                                                                                                                                                            |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if the active [GraphicsDeviceType](/engine/6000.7/script-reference/unityengine/rendering/graphicsdevicetype.md) has a validation implementation; otherwise false. |

### Remarks

Use this as the first gate before calling any other [GraphicsApiValidation](/engine/6000.7/script-reference/unityengine/rendering/graphicsapivalidation.md) member. On backends that don't implement validation, all other members are no-ops and return default values.

A return value of true doesn't guarantee that validation is actually running, only that it can be requested. Use [GraphicsApiValidation.IsValidationActive](/engine/6000.7/script-reference/unityengine/rendering/graphicsapivalidation/isvalidationactive.md) to confirm the debug layer initialized successfully.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Rendering;

public class Example : MonoBehaviour
{
    void Start()
    {
        if (!GraphicsApiValidation.IsValidationSupported())
        {
            Debug.Log("Graphics validation isn't available on the current backend.");
            return;
        }

        // ... continue with validation-aware code ...
    }
}
```
