| 831 | } |
| 832 | |
| 833 | void Tr2DlssPlugin::SetHudLessResource( Tr2TextureAL* hudless, Tr2RenderContextAL& renderContext ) |
| 834 | { |
| 835 | if( !m_framegeneration ) |
| 836 | return; |
| 837 | |
| 838 | auto hudlessResource = StreamlineUtils::GenerateTextureResource( hudless ); |
| 839 | |
| 840 | sl::Extent displayExtent = {}; |
| 841 | displayExtent.height = hudless->GetHeight(); |
| 842 | displayExtent.width = hudless->GetWidth(); |
| 843 | |
| 844 | sl::ResourceTag hudlessResourceTag = sl::ResourceTag{ &hudlessResource, sl::kBufferTypeHUDLessColor, sl::ResourceLifecycle::eValidUntilPresent, &displayExtent }; |
| 845 | |
| 846 | sl::ResourceTag inputs[] = { hudlessResourceTag }; |
| 847 | |
| 848 | DECLARE_STATIC_SL_FUNC( slSetTag ); |
| 849 | if( SL_FAILED( res, s_slSetTag( m_view, inputs, _countof( inputs ), StreamlineUtils::GetCommandBuffer( renderContext ) ) ) ) |
| 850 | { |
| 851 | CCP_LOGERR( "DLSS-G Failed to tag hudless resource (%d)", res ); |
| 852 | } |
| 853 | } |
| 854 | |
| 855 | void Tr2DlssPlugin::SetUiAndAlphaResource( Tr2TextureAL* uiAlpha, Tr2RenderContextAL& renderContext ) |
| 856 | { |
nothing calls this directly
no test coverage detected