MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~TextureData

Method ~TextureData

Engine/source/EtRendering/GraphicsTypes/TextureData.cpp:57–66  ·  view source on GitHub ↗

--------------------------------- TextureData::d-tor Destroys the GPU resource

Source from the content-addressed store, hash-verified

55// Destroys the GPU resource
56//
57TextureData::~TextureData()
58{
59 I_GraphicsApiContext* const api = Viewport::GetCurrentApiContext();
60 if (m_Handle != 0u)
61 {
62 api->SetTextureHandleResidency(m_Handle, false);
63 }
64
65 api->DeleteTexture(m_Location);
66}
67
68//---------------------------------
69// TextureData::Build

Callers

nothing calls this directly

Calls 2

DeleteTextureMethod · 0.80

Tested by

no test coverage detected