@ -274,17 +274,16 @@ extern "C" int32_t UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API CreatePssrContext(
initParams . m_outputColorHeight = params - > displayHeight ;
initParams . m_outputColorHeight = params - > displayHeight ;
initParams . m_sharedResources = s_mfsrSharedResources ;
initParams . m_sharedResources = s_mfsrSharedResources ;
MfsrKeepCopyTextureSpec depthCopySpec = { } , mvCopySpec = { } ;
if ( params - > autoKeepCopies )
if ( params - > autoKeepCopies )
{
{
// Keep a copy of the previous depth internally
// Keep a copy of the previous depth internally
MfsrKeepCopyTextureSpec depthCopySpec = { } ;
depthCopySpec . m_width = params - > maxRenderWidth ;
depthCopySpec . m_width = params - > maxRenderWidth ;
depthCopySpec . m_height = params - > maxRenderHeight ;
depthCopySpec . m_height = params - > maxRenderHeight ;
depthCopySpec . m_bytesPerPixel = 4 ; // R32_SFloat
depthCopySpec . m_bytesPerPixel = 4 ; // R32_SFloat
initParams . m_maxSizeDepthForKeepCopy = & depthCopySpec ;
initParams . m_maxSizeDepthForKeepCopy = & depthCopySpec ;
// Keep a copy of the previous motion vectors internally
// Keep a copy of the previous motion vectors internally
MfsrKeepCopyTextureSpec mvCopySpec = { } ;
mvCopySpec . m_width = params - > maxRenderWidth ;
mvCopySpec . m_width = params - > maxRenderWidth ;
mvCopySpec . m_height = params - > maxRenderHeight ;
mvCopySpec . m_height = params - > maxRenderHeight ;
mvCopySpec . m_bytesPerPixel = 4 ; // R16G16_SFloat
mvCopySpec . m_bytesPerPixel = 4 ; // R16G16_SFloat