Skip to main content

map_memory

Function map_memory 

Source
pub unsafe fn map_memory(
    device: VkHandleRef<'_, VkDevice>,
    memory: VkHandleRefMut<'_, VkDeviceMemory>,
    range: Range<VkDeviceSize>,
    flags: VkMemoryMapFlags,
) -> Result<*mut c_void>
Expand description

ยงSafety

memory must be allocated from device.