Skip to content

Commit 399ee75

Browse files
committed
formatting fixes
1 parent ee6e7d4 commit 399ee75

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

com.unity.render-pipelines.universal/Runtime/NativeRenderPass.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,15 @@ internal void SetupInputAttachmentIndices(ScriptableRenderPass pass)
547547
internal void SetupTransientInputAttachments(int attachmentCount)
548548
{
549549
for (int i = 0; i < attachmentCount; ++i)
550-
{
551-
if (!m_IsActiveColorAttachmentTransient[i])
552-
continue;
550+
{
551+
if (!m_IsActiveColorAttachmentTransient[i])
552+
continue;
553553

554-
m_ActiveColorAttachmentDescriptors[i].loadAction = RenderBufferLoadAction.DontCare;
555-
m_ActiveColorAttachmentDescriptors[i].storeAction = RenderBufferStoreAction.DontCare;
556-
// We change the target of the descriptor for it to be initialized engine-side as a transient resource.
557-
m_ActiveColorAttachmentDescriptors[i].loadStoreTarget = BuiltinRenderTextureType.None;
558-
}
554+
m_ActiveColorAttachmentDescriptors[i].loadAction = RenderBufferLoadAction.DontCare;
555+
m_ActiveColorAttachmentDescriptors[i].storeAction = RenderBufferStoreAction.DontCare;
556+
// We change the target of the descriptor for it to be initialized engine-side as a transient resource.
557+
m_ActiveColorAttachmentDescriptors[i].loadStoreTarget = BuiltinRenderTextureType.None;
558+
}
559559
}
560560

561561
internal static uint GetSubPassAttachmentIndicesCount(ScriptableRenderPass pass)

com.unity.render-pipelines.universal/Runtime/Passes/GBufferPass.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ public override void Execute(ScriptableRenderContext context, ref RenderingData
128128
// Input attachments will only be used when this is not needed so safe to skip in that case
129129
if (!m_DeferredLights.UseRenderPass)
130130
gbufferCommands.SetGlobalTexture(s_CameraNormalsTextureID, m_DeferredLights.GbufferAttachmentIdentifiers[m_DeferredLights.GBufferNormalSmoothnessIndex]);
131-
// gbufferCommands.SetGlobalTexture("_GBuffer4", m_DeferredLights.GbufferAttachmentIdentifiers[4]);
132131
}
133132

134133
context.ExecuteCommandBuffer(gbufferCommands);

com.unity.render-pipelines.universal/Runtime/Passes/ScriptableRenderPass.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ internal void ConfigureTarget(RenderTargetIdentifier colorAttachment, RenderTarg
426426
m_DepthAttachment = depthAttachment;
427427
ConfigureTarget(colorAttachment, format, width, height, sampleCount);
428428
}
429+
429430
/// <summary>
430431
/// Configures render targets for this render pass. Call this instead of CommandBuffer.SetRenderTarget.
431432
/// This method should be called inside Configure.

com.unity.render-pipelines.universal/Runtime/UniversalRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ public override void Setup(ScriptableRenderContext context, ref RenderingData re
663663

664664
if (this.actualRenderingMode == RenderingMode.Deferred)
665665
{
666-
if (m_DeferredLights.UseRenderPass && (RenderPassEvent.AfterRenderingGbuffer == renderPassInputs.requiresDepthNormalAtEvent || !useRenderPassEnabled))
667-
m_DeferredLights.DisableFramebufferFetchInput();
666+
if (m_DeferredLights.UseRenderPass && (RenderPassEvent.AfterRenderingGbuffer == renderPassInputs.requiresDepthNormalAtEvent || !useRenderPassEnabled))
667+
m_DeferredLights.DisableFramebufferFetchInput();
668668

669669
EnqueueDeferred(ref renderingData, requiresDepthPrepass, renderPassInputs.requiresNormalsTexture, mainLightShadows, additionalLightShadows);
670670
}

0 commit comments

Comments
 (0)