Firstborn/Library/PackageCache/com.unity.render-pipelines..../Runtime/Passes/InvokeOnRenderObjectCallbac...

22 lines
637 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
namespace UnityEngine.Rendering.Universal
{
/// <summary>
/// Invokes OnRenderObject callback
/// </summary>
internal class InvokeOnRenderObjectCallbackPass : ScriptableRenderPass
{
public InvokeOnRenderObjectCallbackPass(RenderPassEvent evt)
{
base.profilingSampler = new ProfilingSampler(nameof(InvokeOnRenderObjectCallbackPass));
renderPassEvent = evt;
}
/// <inheritdoc/>
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
{
context.InvokeOnRenderObjectCallback();
}
}
}