MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetHudLessResource

Method SetHudLessResource

trinityal/dx11/Tr2StreamlineALDx11.cpp:802–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802void 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
823void Tr2DlssPlugin::SetUiAndAlphaResource( Tr2TextureAL* uiAlpha, Tr2RenderContextAL& renderContext )
824{

Callers

nothing calls this directly

Calls 4

GenerateTextureResourceFunction · 0.70
GetCommandBufferFunction · 0.70
GetHeightMethod · 0.45
GetWidthMethod · 0.45

Tested by

no test coverage detected