VPP  0.8
A high-level modern C++ API for Vulkan
vpp::BarrierList Class Reference

Multiple barriers with default parameters. More...

#include <vppBarriers.hpp>

Inheritance diagram for vpp::BarrierList:
vpp::Barriers vpp::Bar

Additional Inherited Members

- Public Types inherited from vpp::Bar
enum  EStage {
  NONE, INDIRECT, VTXIN, VSHADER,
  VERTEX, TCSHADER, TESHADER, GSHADER,
  GEOMETRY, FSHADER, FRAGMENT, EDEPTH,
  LDEPTH, CLROUT, CSHADER, COMPUTE,
  TRANSFER, HOST
}
 Enumeration specifying how the resource was (or will be) accessed. More...
 
- Public Member Functions inherited from vpp::Barriers
 Barriers ()
 Constructs empty barrier container.
 
 Barriers (const Barriers &rhs)
 Constructs a copy of other barrier container.
 
void setBarriers (const std::vector< VkMemoryBarrier > &bar)
 Assigns a set of Vulkan global memory barriers. More...
 
void setBarriers (const std::vector< VkBufferMemoryBarrier > &bar)
 Assigns a set of Vulkan buffer barriers. More...
 
void setBarriers (const std::vector< VkImageMemoryBarrier > &bar)
 Assigns a set of Vulkan image barriers. More...
 
void setBarriers (const VkMemoryBarrier &bar)
 Assigns single Vulkan global memory barrier. More...
 
void setBarriers (const VkBufferMemoryBarrier &bar)
 Assigns single Vulkan buffer barrier. More...
 
void setBarriers (const VkImageMemoryBarrier bar)
 Assigns single Vulkan image barrier. More...
 
template<typename BarriersA >
 Barriers (const BarriersA &ba)
 Constructs barriers object from supplied data (one element). More...
 
template<typename BarriersA , typename BarriersB >
 Barriers (const BarriersA &ba, const BarriersB &bb)
 Constructs barriers object from supplied data (two elements). More...
 
template<typename BarriersA , typename BarriersB , typename BarriersC >
 Barriers (const BarriersA &ba, const BarriersB &bb, const BarriersC &bc)
 Constructs barriers object from supplied data (three elements). More...
 

Detailed Description

Multiple barriers with default parameters.

A convenience subclass for Barriers. Holds multiple barriers of any types. Remembers all the required data. Automatically guesses most parameters.

Use this class indirectly, by calling vpp::barriers() function template which constructs it. This is the variant easiest to use, requiring to specify minimum set of parameters. Access masks and layouts are detected automatically, which is appropriate for common scenarios.


The documentation for this class was generated from the following file: