# GetValidationErrorsDroppedCount()

> Returns the number of graphics API validation errors that were dropped because the internal error buffer was full.

## Definition

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

```csharp
public static int GetValidationErrorsDroppedCount()
```

### Returns

| Type                                                       | Description                              |
| ---------------------------------------------------------- | ---------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of dropped validation errors. |

### Remarks

A non-zero return value indicates that some validation errors weren't stored and can't be retrieved with [GraphicsApiValidation.GetValidationError](/engine/6000.7/script-reference/unityengine/rendering/graphicsapivalidation/getvalidationerror.md). The dropped count is reset by [GraphicsApiValidation.ClearValidationErrors](/engine/6000.7/script-reference/unityengine/rendering/graphicsapivalidation/clearvalidationerrors.md).

### Examples

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

public class Example : MonoBehaviour
{
    void WarnIfDropped()
    {
        int dropped = GraphicsApiValidation.GetValidationErrorsDroppedCount();
        if (dropped > 0)
            Debug.LogWarning($"Dropped {dropped} graphics API validation errors (buffer full).");
    }
}
```
