vault backup: 2024-09-06 20:06:13
This commit is contained in:
parent
c2cd14cb04
commit
ac7fc525de
@ -68,24 +68,3 @@ inline void AddCopyTexturePass(
|
|||||||
AddCopyTexturePass(GraphBuilder, InputTexture, OutputTexture, CopyInfo);
|
AddCopyTexturePass(GraphBuilder, InputTexture, OutputTexture, CopyInfo);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
SSR:
|
|
||||||
SHADER_PARAMETER_RDG_TEXTURE_SRV(Texture2D, SceneColor)
|
|
||||||
|
|
||||||
```c++
|
|
||||||
FRDGTextureSRVRef InputColor = GraphBuilder.CreateSRV(FRDGTextureSRVDesc(CurrentSceneColor));
|
|
||||||
if (SSRQuality != ESSRQuality::VisualizeSSR)
|
|
||||||
{
|
|
||||||
if (View.PrevViewInfo.CustomSSRInput.IsValid())
|
|
||||||
{ InputColor = GraphBuilder.CreateSRV(FRDGTextureSRVDesc(
|
|
||||||
GraphBuilder.RegisterExternalTexture(View.PrevViewInfo.CustomSSRInput.RT[0])));
|
|
||||||
} else if (GSSRHalfResSceneColor && View.PrevViewInfo.HalfResTemporalAAHistory.IsValid())
|
|
||||||
{ InputColor = GraphBuilder.CreateSRV(FRDGTextureSRVDesc(
|
|
||||||
GraphBuilder.RegisterExternalTexture(View.PrevViewInfo.HalfResTemporalAAHistory)));
|
|
||||||
} else if (View.PrevViewInfo.TemporalAAHistory.IsValid())
|
|
||||||
{ FRDGTextureRef TemporalAAHistoryTexture = GraphBuilder.RegisterExternalTexture(View.PrevViewInfo.TemporalAAHistory.RT[0]);
|
|
||||||
InputColor = GraphBuilder.CreateSRV(TemporalAAHistoryTexture->Desc.IsTextureArray()
|
|
||||||
? FRDGTextureSRVDesc::CreateForSlice(TemporalAAHistoryTexture, View.PrevViewInfo.TemporalAAHistory.OutputSliceIndex)
|
|
||||||
: FRDGTextureSRVDesc(TemporalAAHistoryTexture));
|
|
||||||
}}
|
|
||||||
```
|
|
Loading…
x
Reference in New Issue
Block a user