| 800 | } |
| 801 | |
| 802 | void Tr2DlssPlugin::SetHudLessResource( Tr2TextureAL* hudless, Tr2RenderContextAL& renderContext ) |
| 803 | { |
| 804 | if( !m_framegeneration ) |
| 805 | return; |
| 806 | auto hudlessResource = StreamlineUtils::GenerateTextureResource( hudless ); |
| 807 | |
| 808 | sl::Extent displayExtent = {}; |
| 809 | displayExtent.height = hudless->GetHeight(); |
| 810 | displayExtent.width = hudless->GetWidth(); |
| 811 | |
| 812 | sl::ResourceTag hudlessResourceTag = sl::ResourceTag{ &hudlessResource, sl::kBufferTypeHUDLessColor, sl::ResourceLifecycle::eValidUntilPresent, &displayExtent }; |
| 813 | |
| 814 | sl::ResourceTag inputs[] = { hudlessResourceTag }; |
| 815 | |
| 816 | DECLARE_STATIC_SL_FUNC( slSetTag ); |
| 817 | if( SL_FAILED( res, s_slSetTag( m_view, inputs, _countof( inputs ), StreamlineUtils::GetCommandBuffer( renderContext ) ) ) ) |
| 818 | { |
| 819 | CCP_LOGERR( "DLSS-G Failed to tag hudless resource (%d)", res ); |
| 820 | } |
| 821 | } |
| 822 | |
| 823 | void Tr2DlssPlugin::SetUiAndAlphaResource( Tr2TextureAL* uiAlpha, Tr2RenderContextAL& renderContext ) |
| 824 | { |
nothing calls this directly
no test coverage detected