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

Function ReleaseStreamline

trinityal/src/Tr2StreamlineAL.cpp:379–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void ReleaseStreamline()
380{
381 if( STREAMLINE_MODULE )
382 {
383 if( STREAMLINE_INITIALIZED )
384 {
385 if( SL_FAILED( res, FUNCTIONS.m_slShutdown() ) )
386 {
387 CCP_LOGERR( "Could not release streamline %d", res );
388 }
389 else
390 {
391 CCP_LOGNOTICE( "NVidia Streamline successfully released" );
392 }
393 }
394
395 memset( &FUNCTIONS, 0, sizeof( FUNCTIONS ) );
396 memset( &FEATURE_FUNCTIONS, 0, sizeof( FEATURE_FUNCTIONS ) );
397
398 FreeLibrary( STREAMLINE_MODULE );
399
400 STREAMLINE_INITIALIZED = false;
401 STREAMLINE_MODULE = nullptr;
402 STREAMLINE_DEVICE_SET = false;
403 STREAMLINE_DLSS_SUPPORTED = false;
404#if TRINITY_PLATFORM == TRINITY_DIRECTX12
405 STREAMLINE_FRAME_GENERATION_SUPPORTED = false;
406#endif
407 }
408}
409
410sl::CommandBuffer* GetCommandBuffer( Tr2RenderContextAL& renderContext )
411{

Calls

no outgoing calls

Tested by

no test coverage detected