MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / freeVulkanPtr

Function freeVulkanPtr

source/vulkan/vulkancommon.cpp:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void 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
139void* getVulkanPtr(KMemory* memory, U32 address) {
140 return (void*)(memory->readq(address));

Callers 3

vk_DestroyInstance2Function · 0.85
vk_DestroyInstanceFunction · 0.85
vk_DestroyDeviceFunction · 0.85

Calls 3

getVulkanPtrFunction · 0.85
removeMethod · 0.45
writedMethod · 0.45

Tested by

no test coverage detected