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

Method Destroy

trinity/Tr2RenderTarget.cpp:334–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void Tr2RenderTarget::Destroy()
335{
336 auto wasValid = m_renderTarget.IsValid();
337
338 m_renderTarget = Tr2TextureAL();
339 m_width = 0;
340 m_height = 0;
341 m_mipCount = 0;
342 m_format = PIXEL_FORMAT_UNKNOWN;
343 m_msaa = Tr2MsaaDesc();
344 m_flags = EX_NONE;
345 m_type = TEX_TYPE_INVALID;
346 m_gpuUsage = Tr2GpuUsage::NONE;
347 m_cpuUsage = Tr2CpuUsage::NONE;
348
349 if( wasValid )
350 {
351 m_onTextureChange();
352 }
353}
354
355bool Tr2RenderTarget::IsReadable() const
356{

Callers

nothing calls this directly

Calls 3

Tr2TextureALClass · 0.70
Tr2MsaaDescClass · 0.50
IsValidMethod · 0.45

Tested by

no test coverage detected