InvokeOnRenderObjectCallbackPass.cs 537 B

1234567891011121314151617181920
  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. renderPassEvent = evt;
  11. }
  12. /// <inheritdoc/>
  13. public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
  14. {
  15. context.InvokeOnRenderObjectCallback();
  16. }
  17. }
  18. }