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

Method flush

framework/core/allocated.h:570–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568
569template <vkb::BindingType bindingType, typename HandleType>
570inline void Allocated<bindingType, HandleType>::flush(DeviceSizeType offset, DeviceSizeType size)
571{
572 if (!coherent)
573 {
574 if constexpr (bindingType == vkb::BindingType::Cpp)
575 {
576 vmaFlushAllocation(get_memory_allocator(), allocation, static_cast<VkDeviceSize>(offset), static_cast<VkDeviceSize>(size));
577 }
578 else
579 {
580 vmaFlushAllocation(get_memory_allocator(), allocation, offset, size);
581 }
582 }
583}
584
585template <vkb::BindingType bindingType, typename HandleType>
586inline const uint8_t *Allocated<bindingType, HandleType>::get_data() const

Callers 9

update_buffersMethod · 0.45
initialize_resourcesMethod · 0.45
update_scene_uniformMethod · 0.45
cpu_cullMethod · 0.45
create_index_bufferMethod · 0.45
create_imageMethod · 0.45
generate_texturesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected