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

Method Dispatch

trinityal/dx12/Tr2StreamlineALDx12.cpp:877–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875}
876
877void Tr2DlssPlugin::Dispatch( Tr2RenderContextAL& renderContext )
878{
879
880 const sl::BaseStructure* inputs[] = { &m_view };
881 auto cb = StreamlineUtils::GetCommandBuffer( renderContext );
882
883 DECLARE_STATIC_SL_FUNC( slEvaluateFeature );
884
885 if( m_framegeneration )
886 {
887 UpdateState();
888 }
889 if( SL_FAILED( result, s_slEvaluateFeature( sl::kFeatureDLSS, *Tr2Streamline::s_frameToken, inputs, _countof( inputs ), cb ) ) )
890 {
891 CCP_LOGERR( "DLSS Failed to Dispatch (%d)", result );
892 }
893}
894
895uint64_t Tr2DlssPlugin::GetEstimatedVRAMUsageInBytes()
896{

Callers 3

RenderUpscalingMethod · 0.45
RunComputeShaderMethod · 0.45

Calls 1

GetCommandBufferFunction · 0.70

Tested by

no test coverage detected