Skip to content

Commit 9907960

Browse files
peterjohnlongsebastienlagarde
authored andcommitted
Hdrp/rt ps fixes (#6545)
* Fix compiler error on console * Fixed filtering horizontal streaks on console
1 parent 4d2ea7f commit 9907960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

com.unity.render-pipelines.high-definition/Runtime/Material/Hair/HairPathTracing.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://www.pbrt.org/hair.pdf
99
float2 DemuxFloat(float x)
1010
{
11-
uint64_t v = x * (1ull << 32);
11+
uint64_t v = x * (((uint64_t)1) << 32);
1212

1313
uint2 bits = uint2(Compact1By1(v), Compact1By1(v >> 1));
1414

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDDiffuseDenoiser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Init(HDRenderPipelineRuntimeResources rpResources, HDRenderPipeline
3434
// Data required for the online initialization
3535
m_DenoiserInitialized = false;
3636
m_OwnenScrambledTexture = rpResources.textures.owenScrambledRGBATex;
37-
m_PointDistribution = new ComputeBuffer(16 * 2 * 4, sizeof(float));
37+
m_PointDistribution = new ComputeBuffer(16 * 4, 2 * sizeof(float));
3838
}
3939

4040
public void Release()

0 commit comments

Comments
 (0)