InvokeOnRenderObjectCallbackPass.cs 637 B

123456789101112131415161718192021
  1. namespace UnityEngine.Rendering.Universal
  2. {
  3. /// <summary>
  4. /// Invokes OnRenderObject callback
  5. /// </summary>
  6. internal class InvokeOnRenderObjectCallbackPass : ScriptableRenderPass
  7. {
  8. public InvokeOnRenderObjectCallbackPass(RenderPassEvent evt)
  9. {
  10. base.profilingSampler = new ProfilingSampler(nameof(InvokeOnRenderObjectCallbackPass));
  11. renderPassEvent = evt;
  12. }
  13. /// <inheritdoc/>
  14. public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
  15. {
  16. context.InvokeOnRenderObjectCallback();
  17. }
  18. }
  19. }