| 127 | } |
| 128 | |
| 129 | void freeVulkanPtr(KMemory* memory, U32 p) { |
| 130 | KProcessPtr process = KThread::currentThread()->process; |
| 131 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(process->freeVulkanPtrMutex); |
| 132 | void* address = getVulkanPtr(memory, p); |
| 133 | process->vulkanPtrMap.remove(address); |
| 134 | memory->writed(p, process->vulkanFreePtrAddress); |
| 135 | process->vulkanFreePtrAddress = p; |
| 136 | vulkanPtrCount--; |
| 137 | } |
| 138 | |
| 139 | void* getVulkanPtr(KMemory* memory, U32 address) { |
| 140 | return (void*)(memory->readq(address)); |
no test coverage detected