namespace UnityEngine.Rendering.HighDefinition { // Caution: keep in sync enum in HDProfileId in HDProfileId.cs /// Buffers available in HDRP public enum AOVBuffers { /// Color buffer that will be used at the end, include post processes. Output, /// Color buffer that will be used before post processes. Color, /// DepthStencil buffer at the end of the frame. DepthStencil, /// Normals buffer at the end of the frame. Normals, /// Motion vectors buffer at the end of the frame. MotionVectors } /// /// Describes the type of custom pass buffer that will be exported with the AOV API. /// public class CustomPassAOVBuffers { /// Specifies which output type to export. public enum OutputType { /// The custom pass buffer will be exported. CustomPassBuffer, /// The color buffer of the camera will be exported. Camera } /// The injection point of the custom passes that will be exported. public CustomPassInjectionPoint injectionPoint = CustomPassInjectionPoint.BeforeRendering; /// Specifies which output type to export. public OutputType outputType = OutputType.CustomPassBuffer; /// /// Constructor for CustomPassAOVBuffers /// /// The injection point of the custom passes that will be exported. /// The buffer type to export at the scpecified injection point. public CustomPassAOVBuffers(CustomPassInjectionPoint injectionPoint, OutputType outputType) { this.injectionPoint = injectionPoint; this.outputType = outputType; } } }