MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / unmap

Method unmap

framework/core/allocated.h:661–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659inline void Allocated<bindingType, HandleType>::set_allocation(VmaAllocation alloc)
660{
661 allocation = alloc;
662}
663
664template <vkb::BindingType bindingType, typename HandleType>
665inline void Allocated<bindingType, HandleType>::post_create(VmaAllocationInfo const &allocation_info)
666{
667 VkMemoryPropertyFlags memory_properties;
668 vmaGetAllocationMemoryProperties(get_memory_allocator(), allocation, &memory_properties);
669 coherent = (memory_properties & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
670 mapped_data = static_cast<uint8_t *>(allocation_info.pMappedData);
671 persistent = mapped();

Callers 15

update_buffersMethod · 0.80
screenshotFunction · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
create_index_bufferMethod · 0.80
create_imageMethod · 0.80
operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected