MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UnloadTexture

Method UnloadTexture

Source/Engine/Graphics/Textures/StreamingTexture.cpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void StreamingTexture::UnloadTexture()
137{
138 ScopeLock lock(_owner->GetOwnerLocker());
139 CancelStreamingTasks();
140 _texture->ReleaseGPU();
141 _header.MipLevels = 0;
142 ASSERT(_streamingTasks.Count() == 0);
143}
144
145uint64 StreamingTexture::GetTotalMemoryUsage() const
146{

Callers 2

InitMethod · 0.80
unloadMethod · 0.80

Calls 2

ReleaseGPUMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected