Skip to content

Commit 960c0a5

Browse files
Review feedback fixes.
1 parent c7cca48 commit 960c0a5

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

com.unity.render-pipelines.core/Runtime/RenderGraph/RenderGraphDefaultResources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class RenderGraphDefaultResources
2525
public TextureHandle blackTextureXR { get; private set; }
2626
/// <summary>Default black (UInt) XR 2D texture.</summary>
2727
public TextureHandle blackUIntTextureXR { get; private set; }
28-
/// <summary>Default blac XR 3D texture.</summary>
28+
/// <summary>Default black XR 3D texture.</summary>
2929
public TextureHandle blackTexture3DXR { get; private set; }
3030
/// <summary>Default white XR 2D texture.</summary>
3131
public TextureHandle whiteTextureXR { get; private set; }

com.unity.render-pipelines.high-definition/Runtime/PostProcessing/PostProcessSystem.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ public PostProcessSystem(HDRenderPipelineAsset hdAsset, RenderPipelineResources
157157
m_UseSafePath = SystemInfo.graphicsDeviceVendor
158158
.ToLowerInvariant().Contains("intel");
159159

160-
var settings = hdAsset.currentPlatformRenderPipelineSettings.postProcessSettings;
161-
m_LutSize = settings.lutSize;
160+
var postProcessSettings = hdAsset.currentPlatformRenderPipelineSettings.postProcessSettings;
161+
m_LutSize = postProcessSettings.lutSize;
162162

163+
// Call after initializing m_LutSize as it's needed for render target allocation.
163164
InitializeNonRenderGraphResources(hdAsset);
164165

165166
// Grading specific
@@ -180,16 +181,16 @@ public PostProcessSystem(HDRenderPipelineAsset hdAsset, RenderPipelineResources
180181
// relying on (breaks determinism in their code)
181182
m_Random = new System.Random();
182183

183-
m_ColorFormat = (GraphicsFormat)settings.bufferFormat;
184+
m_ColorFormat = (GraphicsFormat)postProcessSettings.bufferFormat;
184185
m_KeepAlpha = false;
185186

186187
// if both rendering and post-processing support an alpha channel, then post-processing will process (or copy) the alpha
187-
m_EnableAlpha = settings.supportsAlpha && settings.supportsAlpha;
188+
m_EnableAlpha = hdAsset.currentPlatformRenderPipelineSettings.supportsAlpha && postProcessSettings.supportsAlpha;
188189

189190
if (m_EnableAlpha == false)
190191
{
191192
// if only rendering has an alpha channel (and not post-processing), then we just copy the alpha to the output (but we don't process it).
192-
m_KeepAlpha = settings.supportsAlpha;
193+
m_KeepAlpha = hdAsset.currentPlatformRenderPipelineSettings.supportsAlpha;
193194
}
194195
}
195196

0 commit comments

Comments
 (0)