@ -119,7 +119,7 @@ namespace FidelityFX
CreateDoubleBufferedResource ( InternalUpscaled , "FSR3UPSCALER_InternalUpscaled" , contextDescription . MaxUpscaleSize , GraphicsFormat . R16G16B16A16_SFloat ) ;
CreateDoubleBufferedResource ( InternalUpscaled , "FSR3UPSCALER_InternalUpscaled" , contextDescription . MaxUpscaleSize , GraphicsFormat . R16G16B16A16_SFloat ) ;
// Resources FSR3UPSCALER_LumaHistory1/2: FFX_RESOURCE_USAGE_RENDERTARGET | FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16G16B16A16_FLOAT, FFX_RESOURCE_FLAGS_NONE
// Resources FSR3UPSCALER_LumaHistory1/2: FFX_RESOURCE_USAGE_RENDERTARGET | FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16G16B16A16_FLOAT, FFX_RESOURCE_FLAGS_NONE
CreateDoubleBufferedResource ( LumaHistory , "FSR3UPSCALER_LumaHistory" , contextDescription . MaxUpscale Size, GraphicsFormat . R16G16B16A16_SFloat ) ;
CreateDoubleBufferedResource ( LumaHistory , "FSR3UPSCALER_LumaHistory" , maxRender Size, GraphicsFormat . R16G16B16A16_SFloat ) ;
}
}
public void CreateTcrAutogenResources ( Fsr3Upscaler . ContextDescription contextDescription )
public void CreateTcrAutogenResources ( Fsr3Upscaler . ContextDescription contextDescription )
@ -148,6 +148,7 @@ namespace FidelityFX
Vector2Int maxRenderSizeDiv2 = maxRenderSize / 2 ;
Vector2Int maxRenderSizeDiv2 = maxRenderSize / 2 ;
// FSR3UPSCALER_IntermediateFp16x1: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16_FLOAT, FFX_RESOURCE_FLAGS_ALIASABLE
// FSR3UPSCALER_IntermediateFp16x1: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16_FLOAT, FFX_RESOURCE_FLAGS_ALIASABLE
// TODO: see if these can be combined into one (this is a reusable temporary intermediate buffer used by different passes for different purposes)
commandBuffer . GetTemporaryRT ( Fsr3ShaderIDs . UavFarthestDepth , maxRenderSize . x , maxRenderSize . y , 0 , default , GraphicsFormat . R16_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( Fsr3ShaderIDs . UavFarthestDepth , maxRenderSize . x , maxRenderSize . y , 0 , default , GraphicsFormat . R16_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( Fsr3ShaderIDs . UavLumaInstability , maxRenderSize . x , maxRenderSize . y , 0 , default , GraphicsFormat . R16_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( Fsr3ShaderIDs . UavLumaInstability , maxRenderSize . x , maxRenderSize . y , 0 , default , GraphicsFormat . R16_SFloat , 1 , true ) ;