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

Method GetRenderTargetSize

trinityal/stub/Tr2RenderContextStub.cpp:370–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370ALResult Tr2RenderContextAL::GetRenderTargetSize( uint32_t& width, uint32_t& height, uint32_t slot )
371{
372 if( slot >= MAX_RENDER_TARGET )
373 {
374 return E_FAIL;
375 }
376 if( !m_boundRenderTarget[slot].IsValid() )
377 {
378 return E_INVALIDCALL;
379 }
380 else
381 {
382 width = m_boundRenderTarget[slot].GetWidth();
383 height = m_boundRenderTarget[slot].GetHeight();
384 }
385 return S_OK;
386}
387
388void Tr2RenderContextAL::ReleaseDeviceResources()
389{

Callers

nothing calls this directly

Calls 3

IsValidMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected