| 1440 | } |
| 1441 | |
| 1442 | uint16_t GetVersion(HFactory factory, void* resource) |
| 1443 | { |
| 1444 | uint64_t* resource_hash = factory->m_ResourceToHash->Get((uintptr_t) resource); |
| 1445 | assert(resource_hash); |
| 1446 | |
| 1447 | ResourceDescriptor* rd = factory->m_Resources->Get(*resource_hash); |
| 1448 | assert(rd); |
| 1449 | return rd->m_Version; |
| 1450 | } |
| 1451 | |
| 1452 | // For unit testing |
| 1453 | uint32_t GetRefCount(HFactory factory, void* resource) |
no test coverage detected