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

Method OnPrepareResources

trinity/Tr2RenderTarget.cpp:498–508  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

496
497// --------------------------------------------------------------------------------------
498bool Tr2RenderTarget::OnPrepareResources()
499{
500 if( !m_renderTarget.IsValid() && m_width != 0 )
501 {
502 USE_MAIN_THREAD_RENDER_CONTEXT();
503
504 m_renderTarget.Create( Tr2BitmapDimensions( m_type, m_format, m_width, m_height, 1, m_mipCount, m_arraySize ), m_msaa, m_gpuUsage, m_cpuUsage, nullptr, renderContext );
505 m_onTextureChange();
506 }
507 return true;
508}

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected