VkCV Framework
0.0.1
CV Vulkan framework
|
#include "vkcv/BufferManager.hpp"
#include "vkcv/Core.hpp"
#include <vkcv/Logger.hpp>
Go to the source code of this file.
Classes | |
struct | vkcv::StagingStepInfo |
Functions | |
uint32_t | vkcv::searchBufferMemoryType (const vk::PhysicalDeviceMemoryProperties &physicalMemoryProperties, uint32_t typeBits, vk::MemoryPropertyFlags requirements) |
searches memory type index for buffer allocation, combines requirements of buffer and application More... | |
void | vkcv::copyFromStagingBuffer (Core *core, StagingStepInfo &info) |
Definition in file BufferManager.cpp.
void vkcv::copyFromStagingBuffer | ( | Core * | core, |
StagingStepInfo & | info | ||
) |
Copies data from CPU to a staging buffer and submits the commands to copy each part one after another into the actual target buffer.
The function can be used fully asynchronously! Just be careful to not use the staging buffer in parallel!
core | Core instance |
info | Staging-info structure |
References vkcv::copyFromStagingBuffer().
Referenced by vkcv::copyFromStagingBuffer(), and vkcv::BufferManager::fillBuffer().
uint32_t vkcv::searchBufferMemoryType | ( | const vk::PhysicalDeviceMemoryProperties & | physicalMemoryProperties, |
uint32_t | typeBits, | ||
vk::MemoryPropertyFlags | requirements | ||
) |
searches memory type index for buffer allocation, combines requirements of buffer and application
physicalMemoryProperties | Memory Properties of physical device |
typeBits | Bit field for suitable memory types |
requirements | Property flags that are required |
References vkcv::searchBufferMemoryType().
Referenced by vkcv::searchBufferMemoryType().