| 853 | } |
| 854 | |
| 855 | void Tr2DlssPlugin::SetUiAndAlphaResource( Tr2TextureAL* uiAlpha, Tr2RenderContextAL& renderContext ) |
| 856 | { |
| 857 | if( !m_framegeneration ) |
| 858 | return; |
| 859 | |
| 860 | auto uiAndAlphaResource = StreamlineUtils::GenerateTextureResource( uiAlpha ); |
| 861 | |
| 862 | sl::Extent displayExtent = {}; |
| 863 | displayExtent.height = uiAlpha->GetHeight(); |
| 864 | displayExtent.width = uiAlpha->GetWidth(); |
| 865 | |
| 866 | sl::ResourceTag uiAndAlphaResourceTag = sl::ResourceTag{ &uiAndAlphaResource, sl::kBufferTypeHUDLessColor, sl::ResourceLifecycle::eValidUntilPresent, &displayExtent }; |
| 867 | |
| 868 | sl::ResourceTag inputs[] = { uiAndAlphaResourceTag }; |
| 869 | |
| 870 | DECLARE_STATIC_SL_FUNC( slSetTag ); |
| 871 | if( SL_FAILED( res, s_slSetTag( m_view, inputs, _countof( inputs ), StreamlineUtils::GetCommandBuffer( renderContext ) ) ) ) |
| 872 | { |
| 873 | CCP_LOGERR( "DLSS-G Failed to tag ui and alpha resource (%d)", res ); |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | void Tr2DlssPlugin::Dispatch( Tr2RenderContextAL& renderContext ) |
| 878 | { |
nothing calls this directly
no test coverage detected