mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
dc79a8a935
And fix the transitions in ScrapFlush.
22 lines
620 B
C
22 lines
620 B
C
#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,
|
|
qfv_LT_ShaderReadOnly_to_TransferDst,
|
|
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
|