@ -85,25 +85,25 @@ namespace FidelityFX
// TODO: we could potentially gather *all* resource binding here, by using CommandBuffer.SetGlobalTexture for everything
// Resource FSR2_SpdAtomicCounter: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R32_UINT, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavSpdAtomicCount , 1 , 1 , 0 , FilterMode . Point , GraphicsFormat . R32_UInt , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavSpdAtomicCount , 1 , 1 , 0 , default ( FilterMode ) , GraphicsFormat . R32_UInt , 1 , true ) ;
// FSR2_ReconstructedPrevNearestDepth: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R32_UINT, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavReconstructedPrevNearestDepth , maxRenderSize . x , maxRenderSize . y , 0 , FilterMode . Point , GraphicsFormat . R32_UInt , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavReconstructedPrevNearestDepth , maxRenderSize . x , maxRenderSize . y , 0 , default ( FilterMode ) , GraphicsFormat . R32_UInt , 1 , true ) ;
// FSR2_DilatedDepth: FFX_RESOURCE_USAGE_RENDERTARGET | FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R32_FLOAT, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavDilatedDepth , maxRenderSize . x , maxRenderSize . y , 0 , FilterMode . Point , GraphicsFormat . R32_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavDilatedDepth , maxRenderSize . x , maxRenderSize . y , 0 , default ( FilterMode ) , GraphicsFormat . R32_SFloat , 1 , true ) ;
// FSR2_LockInputLuma: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16_FLOAT, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavLockInputLuma , maxRenderSize . x , maxRenderSize . y , 0 , FilterMode . Point , GraphicsFormat . R16_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavLockInputLuma , maxRenderSize . x , maxRenderSize . y , 0 , default ( FilterMode ) , GraphicsFormat . R16_SFloat , 1 , true ) ;
// FSR2_DilatedReactiveMasks: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R8G8_UNORM, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavDilatedReactiveMasks , maxRenderSize . x , maxRenderSize . y , 0 , FilterMode . Point , GraphicsFormat . R8G8_UNorm , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavDilatedReactiveMasks , maxRenderSize . x , maxRenderSize . y , 0 , default ( FilterMode ) , GraphicsFormat . R8G8_UNorm , 1 , true ) ;
// FSR2_PreparedInputColor: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R16G16B16A16_FLOAT, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavPreparedInputColor , maxRenderSize . x , maxRenderSize . y , 0 , FilterMode . Point , GraphicsFormat . R16G16B16A16_SFloat , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavPreparedInputColor , maxRenderSize . x , maxRenderSize . y , 0 , default ( FilterMode ) , GraphicsFormat . R16G16B16A16_SFloat , 1 , true ) ;
// FSR2_NewLocks: FFX_RESOURCE_USAGE_UAV, FFX_SURFACE_FORMAT_R8_UNORM, FFX_RESOURCE_FLAGS_ALIASABLE
commandBuffer . GetTemporaryRT ( UavNewLocks , displaySize . x , displaySize . y , 0 , FilterMode . Point , GraphicsFormat . R8_UNorm , 1 , true ) ;
commandBuffer . GetTemporaryRT ( UavNewLocks , displaySize . x , displaySize . y , 0 , default ( FilterMode ) , GraphicsFormat . R8_UNorm , 1 , true ) ;
}
public static void UnregisterResources ( CommandBuffer commandBuffer )