| 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++) |