MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_memory_properties()

vk::MemoryPropertyFlags MayaFlux::Core::VKImage::get_memory_properties ( ) const

Get appropriate VkMemoryPropertyFlags based on Usage.

Returns
VkMemoryPropertyFlags for memory allocation

Definition at line 69 of file VKImage.cpp.

70{
71 if (is_host_visible()) {
72 return vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent;
73 }
74
75 return vk::MemoryPropertyFlagBits::eDeviceLocal;
76}
bool is_host_visible() const
Whether this image should be host-visible (staging images)
Definition VKImage.hpp:196

References is_host_visible().

+ Here is the call graph for this function: