Skip to content

Commit 6ba8f06

Browse files
committed
Fixed NRD screen resizing
1 parent 469dc3c commit 6ba8f06

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Source/RenderPasses/NRDPass/NRDPassBase.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ void NRDPassBase::compile(RenderContext* pRenderContext, const CompileData& comp
206206
mScreenSize = RenderPassHelpers::calculateIOSize(mOutputSizeSelection, mScreenSize, compileData.defaultTexDims);
207207
if (mScreenSize.x == 0 || mScreenSize.y == 0)
208208
mScreenSize = compileData.defaultTexDims;
209+
mRecreateDenoiser = true;
209210
mFrameIndex = 0;
210211
}
211212

@@ -1074,14 +1075,6 @@ void NRDPassBase::dispatch(RenderContext* pRenderContext, const RenderData& rend
10741075
case nrd::ResourceType::IN_SPEC_RADIANCE_HITDIST:
10751076
texture = renderData.getTexture(kInputSpecularRadianceHitDist);
10761077
break;
1077-
/*
1078-
case nrd::ResourceType::IN_DELTA_PRIMARY_POS:
1079-
texture = renderData.getTexture(kInputDeltaPrimaryPosW);
1080-
break;
1081-
case nrd::ResourceType::IN_DELTA_SECONDARY_POS:
1082-
texture = renderData.getTexture(kInputDeltaSecondaryPosW);
1083-
break;
1084-
*/
10851078
case nrd::ResourceType::OUT_DIFF_RADIANCE_HITDIST:
10861079
texture = renderData.getTexture(kOutputFilteredDiffuseRadianceHitDist);
10871080
break;

0 commit comments

Comments
 (0)