MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / operator<

Method operator<

Source/Engine/Graphics/GPUDevice.cpp:533–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531 uint64 MemoryUsage;
532
533 bool operator<(const Resource& other) const
534 {
535 if (MemoryUsage != other.MemoryUsage)
536 return MemoryUsage > other.MemoryUsage;
537#if GPU_ENABLE_RESOURCE_NAMING
538 return Object->GetName().Compare(other.Object->GetName()) > 0;
539#else
540 return (uintptr)Object < (uintptr)other.Object;
541#endif
542 }
543 };
544 Array<Resource> resources;
545 for (int32 i = 0; i < _resources.Count(); i++)

Callers

nothing calls this directly

Calls 2

CompareMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected