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

Method SetHudLessResource

trinityal/dx12/Tr2StreamlineALDx12.cpp:833–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void 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
855void Tr2DlssPlugin::SetUiAndAlphaResource( Tr2TextureAL* uiAlpha, Tr2RenderContextAL& renderContext )
856{

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