MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ~GPUResource

Method ~GPUResource

Source/Engine/Graphics/GPUDevice.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243GPUResource::~GPUResource()
244{
245#if !BUILD_RELEASE && GPU_ENABLE_RESOURCE_NAMING
246 if (_memoryUsage != 0)
247 LOG(Error, "{0} '{1}' has not been disposed before destruction", ScriptingObject::ToString(), GetName());
248#endif
249#if GPU_ENABLE_RESOURCE_NAMING
250 if (_namePtr)
251 Platform::Free(_namePtr);
252#endif
253}
254
255uint64 GPUResource::GetMemoryUsage() const
256{

Callers

nothing calls this directly

Calls 2

ToStringFunction · 0.70
FreeFunction · 0.50

Tested by

no test coverage detected