Skip to content

Commit bf34a59

Browse files
fix switch shader compilation (#111)
1 parent 6e624d2 commit bf34a59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

com.unity.render-pipelines.high-definition/Runtime/Material/GGXConvolution/ComputeGgxIblSampleData.compute

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define MAX_IBL_SAMPLE_CNT 89
1212
#endif
1313

14-
RWTexture2D<float4> output; // [MAX_SAMPLE_CNT x UNITY_SPECCUBE_LOD_STEPS]
14+
RWTexture2D<float4> outputResult; // [MAX_SAMPLE_CNT x UNITY_SPECCUBE_LOD_STEPS]
1515

1616
#pragma kernel ComputeGgxIblSampleData
1717

@@ -33,7 +33,7 @@ void ComputeGgxIblSampleData(uint3 groupThreadId : SV_GroupThreadID)
3333

3434
if (sampleIndex >= sampleCount)
3535
{
36-
output[texCoord] = float4(0, 0, 0, 0);
36+
outputResult[texCoord] = float4(0, 0, 0, 0);
3737
return;
3838
}
3939

@@ -82,6 +82,6 @@ void ComputeGgxIblSampleData(uint3 groupThreadId : SV_GroupThreadID)
8282
float pdf = 0.25 * D_GGX(NdotH, roughness);
8383
float omegaS = rcp(sampleCount) * rcp(pdf);
8484

85-
output[texCoord] = float4(localL, omegaS);
85+
outputResult[texCoord] = float4(localL, omegaS);
8686
}
8787
}

com.unity.render-pipelines.high-definition/Runtime/Material/GGXConvolution/IBLFilterGGX.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public override void Initialize(CommandBuffer cmd)
6767

6868
void InitializeGgxIblSampleData(CommandBuffer cmd)
6969
{
70-
m_ComputeGgxIblSampleDataCS.SetTexture(m_ComputeGgxIblSampleDataKernel, "output", m_GgxIblSampleData);
70+
m_ComputeGgxIblSampleDataCS.SetTexture(m_ComputeGgxIblSampleDataKernel, "outputResult", m_GgxIblSampleData);
7171
cmd.DispatchCompute(m_ComputeGgxIblSampleDataCS, m_ComputeGgxIblSampleDataKernel, 1, 1, 1);
7272
}
7373

0 commit comments

Comments
 (0)