Skip to content

Commit 1c6fb31

Browse files
FrancescoC-unitysebastienlagarde
authored andcommitted
Fix for Final Image Histogram debug mode not working on some hardware #7041
1 parent 0a739c2 commit 1c6fb31

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1818
- Fixed vertex color mode Add name whicgh was misleading, renamed to AddSubstract.
1919
- Fixed screen space shadow when multiple lights cast shadows.
2020
- Fixed issue with dynamic resolution and low res transparency sampling garbage outside of the render target.
21+
- Fixed issue with Final Image Histogram displaying a flat histogram on certain GPUs and APIs.
2122

2223
## [10.8.0] - 2021-09-20
2324

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ internal DebugImageHistogramParameters PrepareDebugImageHistogramParameters(HDCa
15821582
parameters.debugImageHistogramCS = m_Resources.shaders.debugImageHistogramCS;
15831583
parameters.debugImageHistogramKernel = parameters.debugImageHistogramCS.FindKernel("KHistogramGen");
15841584

1585-
ValidateComputeBuffer(ref m_DebugImageHistogramBuffer, k_DebugImageHistogramBins * 4, sizeof(uint));
1585+
ValidateComputeBuffer(ref m_DebugImageHistogramBuffer, k_DebugImageHistogramBins, 4 * sizeof(uint));
15861586
m_DebugImageHistogramBuffer.SetData(m_EmptyDebugImageHistogram); // Clear the histogram
15871587

15881588
parameters.imageHistogram = m_DebugImageHistogramBuffer;

0 commit comments

Comments
 (0)