WuhuIslandTesting/Library/PackageCache/com.unity.render-pipelines.universal@8148.0.7-4/Runtime/Passes/InvokeOnRenderObjectCallbackPass.cs
2025-01-07 02:06:59 +01:00

21 lines
637 B
C#

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();
}
}
}