227 void setBarriers (
const std::vector< VkMemoryBarrier >& bar );
236 void setBarriers (
const std::vector< VkBufferMemoryBarrier >& bar );
245 void setBarriers (
const std::vector< VkImageMemoryBarrier >& bar );
263 void setBarriers (
const VkBufferMemoryBarrier& bar );
272 void setBarriers (
const VkImageMemoryBarrier bar );
281 template<
typename BarriersA >
291 template<
typename BarriersA,
typename BarriersB >
292 Barriers (
const BarriersA& ba,
const BarriersB& bb );
301 template<
typename BarriersA,
typename BarriersB,
typename BarriersC >
302 Barriers (
const BarriersA& ba,
const BarriersB& bb,
const BarriersC& bc );
314 public VkMemoryBarrier,
318 VkAccessFlags srcAccessMask,
319 VkAccessFlags dstAccessMask );
331 public VkBufferMemoryBarrier,
335 VkAccessFlags srcAccessMask,
336 VkAccessFlags dstAccessMask,
338 VkDeviceSize offset = 0,
339 VkDeviceSize size = VK_WHOLE_SIZE,
340 uint32_t srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
341 uint32_t dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED );
353 public VkImageMemoryBarrier,
357 VkAccessFlags srcAccessMask,
358 VkAccessFlags dstAccessMask,
359 VkImageLayout oldLayout,
360 VkImageLayout newLayout,
362 std::uint32_t baseArrayLayer = 0,
363 std::uint32_t layerCount = VK_REMAINING_ARRAY_LAYERS,
364 std::uint32_t baseMipLevel = 0,
365 std::uint32_t levelCount = VK_REMAINING_MIP_LEVELS,
366 VkImageAspectFlags aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
367 uint32_t srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
368 uint32_t dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED );
430 template<
typename ... Args >
432 VkPipelineStageFlags sourceStage, VkPipelineStageFlags targetStage,
452 const std::vector< VkImageSubresourceRange >& regions,
453 VkPipelineStageFlags sourceStage, VkPipelineStageFlags targetStage );
Resource is accessed during gathering vertices for a draw command.
Definition: vppBarriers.hpp:74
Resource is accessed during geometry shader execution.
Definition: vppBarriers.hpp:109
Resource is accessed during fragment shader execution.
Definition: vppBarriers.hpp:123
Resource is accessed from the CPU side.
Definition: vppBarriers.hpp:190
Class representing generic (untyped) Vulkan image.
Definition: vppImage.hpp:54
Same as FSHADER.
Definition: vppBarriers.hpp:126
Barriers()
Constructs empty barrier container.
The VPP namespace.
Definition: main.hpp:1
Single buffer barrier.
Definition: vppBarriers.hpp:330
Resource is accessed during late fragment tests.
Definition: vppBarriers.hpp:144
Resource is accessed during processing of indirect draw commands.
Definition: vppBarriers.hpp:64
Utility base class for barrier classes.
Definition: vppBarriers.hpp:37
BarrierList barriers(VkPipelineStageFlags sourceStage, VkPipelineStageFlags targetStage, Args &&... args)
Creates a BarrierList object for specified resources.
Multiple barriers with default parameters.
Definition: vppBarriers.hpp:384
EStage
Enumeration specifying how the resource was (or will be) accessed.
Definition: vppBarriers.hpp:44
Resource has never been accessed before, or its content does not matter.
Definition: vppBarriers.hpp:54
Resource is accessed during vertex shader execution.
Definition: vppBarriers.hpp:82
Same as VSHADER.
Definition: vppBarriers.hpp:85
Resource is accessed during tessellation control shader execution.
Definition: vppBarriers.hpp:93
Resource is accessed during early fragment tests.
Definition: vppBarriers.hpp:135
Resource is accessed during tessellation evaluation shader execution.
Definition: vppBarriers.hpp:101
General class encapsulating description of a set of pipeline barriers.
Definition: vppBarriers.hpp:211
Resource is accessed during color output.
Definition: vppBarriers.hpp:153
Single image barrier.
Definition: vppBarriers.hpp:352
Resource is accessed during data transfer.
Definition: vppBarriers.hpp:175
Single global memory barrier.
Definition: vppBarriers.hpp:313
Generic class representing Vulkan buffers.
Definition: vppBuffer.hpp:43
Same as CSHADER.
Definition: vppBarriers.hpp:164
void setBarriers(const std::vector< VkMemoryBarrier > &bar)
Assigns a set of Vulkan global memory barriers.
Resource is accessed during compute shader execution.
Definition: vppBarriers.hpp:161
Same as GSHADER.
Definition: vppBarriers.hpp:112