Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit 7ee60b8

Browse files
committed
Cleans up the OrthographicRenderPass.
1 parent f483659 commit 7ee60b8

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

Core/Components/Render/OrthographicRenderFeature.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class OrthographicRenderFeature : ScriptableRendererFeature {
1414
public override void Create() {
1515
orthographic = new OrthographicRenderPass {
1616
CommandBuffer = CommandBuffer,
17-
Sampler = new ProfilingSampler(name),
1817
renderPassEvent = RenderPassEvent
1918
};
2019
}

Core/Components/Render/OrthographicRenderPass.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ public class OrthographicRenderPass : ScriptableRenderPass {
77

88
public CommandBuffer CommandBuffer;
99

10-
public ProfilingSampler Sampler;
11-
12-
public void Release() {
13-
if (CommandBuffer != null) {
14-
CommandBufferPool.Release(CommandBuffer);
15-
}
16-
}
17-
1810
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) {
19-
using (new ProfilingScope(CommandBuffer, Sampler)) {
20-
if (CommandBuffer != null) {
21-
context.ExecuteCommandBuffer(CommandBuffer);
22-
}
11+
if (CommandBuffer != null) {
12+
context.ExecuteCommandBuffer(CommandBuffer);
2313
}
2414
}
2515
}

0 commit comments

Comments
 (0)