MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ~Texture2D

Method ~Texture2D

Source/Cache/TextureCache.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31Texture2D::~Texture2D() {
32 _storageSize -= _info.storageSize;
33 _count--;
34 if (bgfx::isValid(_handle)) {
35 bgfx::destroy(_handle);
36 _handle = BGFX_INVALID_HANDLE;
37 }
38}
39
40uint32_t Texture2D::getCount() {
41 return _count;

Callers

nothing calls this directly

Calls 2

isValidFunction · 0.50
destroyFunction · 0.50

Tested by

no test coverage detected