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

◆ get_memory_properties()

vk::MemoryPropertyFlags MayaFlux::Buffers::VKBuffer::get_memory_properties ( ) const

Get appropriate VkMemoryPropertyFlags for allocation based on Usage.

Returns
VkMemoryPropertyFlags to request during memory allocation.

Definition at line 250 of file VKBuffer.cpp.

251{
252 if (is_host_visible()) {
253 return vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent;
254 }
255 return vk::MemoryPropertyFlagBits::eDeviceLocal;
256}
bool is_host_visible() const
Whether this VKBuffer should be host-visible.
Definition VKBuffer.hpp:278

References is_host_visible().

+ Here is the call graph for this function: