blob: 9f622069612ff7bed6f4d5ff139e225ae030ec8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#if MODULE_RENDER_PIPELINES_HIGH_DEFINITION
using UnityEngine;
using UnityEngine.Rendering.HighDefinition;
using UnityEngine.Rendering;
using UnityEngine.Experimental.Rendering;
namespace Pathfinding.Drawing {
/// <summary>Custom High Definition Render Pipeline Render Pass for ALINE</summary>
class AlineHDRPCustomPass : CustomPass {
protected override void Setup (ScriptableRenderContext renderContext, CommandBuffer cmd) {
}
#if MODULE_RENDER_PIPELINES_HIGH_DEFINITION_9_0_OR_NEWER
protected override void Execute (CustomPassContext context) {
UnityEngine.Profiling.Profiler.BeginSample("ALINE");
DrawingManager.instance.SubmitFrame(context.hdCamera.camera, new DrawingData.CommandBufferWrapper { cmd = context.cmd }, true);
UnityEngine.Profiling.Profiler.EndSample();
}
#else
protected override void Execute (ScriptableRenderContext context, CommandBuffer cmd, HDCamera camera, CullingResults cullingResult) {
UnityEngine.Profiling.Profiler.BeginSample("ALINE");
DrawingManager.instance.SubmitFrame(camera.camera, new DrawingData.CommandBufferWrapper { cmd = cmd }, true);
UnityEngine.Profiling.Profiler.EndSample();
}
#endif
protected override void Cleanup () {
}
}
}
#endif
|