int The number of dropped validation errors.
Returns the number of graphics API validation errors that were dropped because the internal error buffer was full.
A non-zero return value indicates that some validation errors weren't stored and can't be retrieved with GraphicsApiValidation.GetValidationError. The dropped count is reset by GraphicsApiValidation.ClearValidationErrors.
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)."); } }