VkCV Framework  0.0.1
CV Vulkan framework
BufferManager.cpp File Reference
#include "vkcv/BufferManager.hpp"
#include "vkcv/Core.hpp"
#include <vkcv/Logger.hpp>
Include dependency graph for BufferManager.cpp:

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)
 

Detailed Description

Author
Tobias Frisch

Definition in file BufferManager.cpp.

Function Documentation

◆ copyFromStagingBuffer()

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!

Parameters
coreCore instance
infoStaging-info structure

References vkcv::copyFromStagingBuffer().

Referenced by vkcv::copyFromStagingBuffer(), and vkcv::BufferManager::fillBuffer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ searchBufferMemoryType()

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

Parameters
physicalMemoryPropertiesMemory Properties of physical device
typeBitsBit field for suitable memory types
requirementsProperty flags that are required
Returns
memory type index for Buffer

References vkcv::searchBufferMemoryType().

Referenced by vkcv::searchBufferMemoryType().

Here is the call graph for this function:
Here is the caller graph for this function: