mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
29 lines
778 B
C++
29 lines
778 B
C++
#ifndef BARRIERS_HPP
|
|
#define BARRIERS_HPP
|
|
|
|
#include "core/commandbuffer.hpp"
|
|
#include "core/image.hpp"
|
|
|
|
#include <vector>
|
|
|
|
#include <vulkan/vulkan_core.h>
|
|
|
|
namespace Barriers {
|
|
|
|
///
|
|
/// Insert memory barriers for images in a command buffer.
|
|
///
|
|
/// @param buffer Command buffer to insert barriers into
|
|
/// @param r2wImages Images that are being read and will be written to
|
|
/// @param w2rImages Images that are being written to and will be read from
|
|
///
|
|
/// @throws std::logic_error if the command buffer is not in Recording state
|
|
///
|
|
void insertBarrier(
|
|
const Vulkan::Core::CommandBuffer& buffer,
|
|
std::vector<Vulkan::Core::Image> r2wImages,
|
|
std::vector<Vulkan::Core::Image> w2rImages);
|
|
|
|
};
|
|
|
|
#endif // BARRIERS_HPP
|