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

Function getVMemory

source/vulkan/vulkancommon.cpp:154–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152BOXEDWINE_MUTEX vmemoryMutex;
153
154std::shared_ptr<VMemory> getVMemory(VkDeviceMemory memory) {
155 if (vmemory.count(memory))
156 return vmemory[memory];
157 return NULL;
158}
159
160void registerVkMemoryAllocation(VkDeviceMemory memory, VkDeviceSize size) {
161 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(vmemoryMutex);

Callers 3

mapVkMemoryFunction · 0.85
unmapVkMemoryFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected