using System; namespace UnityEngine.Rendering.UnifiedRayTracing { /// /// Represents errors that can occur during UnifiedRayTracing calls. /// public enum UnifiedRayTracingError { /// Unknown error. Unknown, /// Graphics Buffer allocation failed. It happens usually when the GPU runs out of memory. You can try to reduce your mesh data or your number of instances. GraphicsBufferAllocationFailed } /// /// Exception type that can be thrown in case of failure in UnifiedRayTracing calls. /// public class UnifiedRayTracingException : Exception { /// /// Initializes a new instance of /// /// Message describing the error. /// The error code. public UnifiedRayTracingException(string message, UnifiedRayTracingError errorCode) : base(message) { this.errorCode = errorCode; } /// /// Gets the code associated with the exception. /// public UnifiedRayTracingError errorCode { get; private set; } } }