namespace UnityEngine.Rendering.Universal { /// /// Invokes OnRenderObject callback /// internal class InvokeOnRenderObjectCallbackPass : ScriptableRenderPass { public InvokeOnRenderObjectCallbackPass(RenderPassEvent evt) { base.profilingSampler = new ProfilingSampler(nameof(InvokeOnRenderObjectCallbackPass)); renderPassEvent = evt; } /// public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) { context.InvokeOnRenderObjectCallback(); } } }