2021-01-10 16:24:15 +00:00
|
|
|
#ifndef __QF_Vulkan_barrier_h
|
|
|
|
#define __QF_Vulkan_barrier_h
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
VkPipelineStageFlags src;
|
|
|
|
VkPipelineStageFlags dst;
|
|
|
|
} qfv_pipelinestagepair_t;
|
|
|
|
|
|
|
|
//XXX Note: imageLayoutTransitionBarriers, imageLayoutTransitionStages and
|
|
|
|
// the enum must be kept in sync
|
|
|
|
enum {
|
|
|
|
qfv_LT_Undefined_to_TransferDst,
|
|
|
|
qfv_LT_TransferDst_to_ShaderReadOnly,
|
2021-01-21 08:13:17 +00:00
|
|
|
qfv_LT_ShaderReadOnly_to_TransferDst,
|
2021-01-10 16:24:15 +00:00
|
|
|
qfv_LT_Undefined_to_DepthStencil,
|
|
|
|
qfv_LT_Undefined_to_Color,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const VkImageMemoryBarrier imageLayoutTransitionBarriers[];
|
|
|
|
extern const qfv_pipelinestagepair_t imageLayoutTransitionStages[];
|
|
|
|
|
|
|
|
#endif//__QF_Vulkan_barrier_h
|