MCPcopy Create free account
hub / github.com/defold/defold / MapMemory

Method MapMemory

engine/graphics/src/vulkan/graphics_vulkan_device.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 VkResult DeviceBuffer::MapMemory(VkDevice vk_device, uint32_t offset, uint32_t size)
252 {
253 if (m_MappedDataPtr)
254 {
255 return VK_SUCCESS;
256 }
257 return vkMapMemory(vk_device, m_Handle.m_Memory, offset, size > 0 ? size : m_MemorySize, 0, &m_MappedDataPtr);
258 }
259
260 void DeviceBuffer::UnmapMemory(VkDevice vk_device)
261 {

Callers 5

VulkanBeginFrameFunction · 0.80
ResizeScratchBufferFunction · 0.80
VulkanReadPixelsFunction · 0.80
WriteToDeviceBufferFunction · 0.80
CreateScratchBufferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected