MayaFlux 0.1.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 73 of file VKImage.cpp.

74{
75 if (is_host_visible()) {
76 return vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent;
77 }
78
79 return vk::MemoryPropertyFlagBits::eDeviceLocal;
80}
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: