mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 14:42:07 +00:00
785be9d340
This even fixes a couple of minor issues that snuck past validation.
38 lines
1,010 B
C
38 lines
1,010 B
C
#ifndef __QF_Vulkan_barrier_h
|
|
#define __QF_Vulkan_barrier_h
|
|
|
|
typedef struct {
|
|
VkPipelineStageFlags srcStages;
|
|
VkPipelineStageFlags dstStages;
|
|
VkImageMemoryBarrier barrier;
|
|
} qfv_imagebarrier_t;
|
|
|
|
typedef struct {
|
|
VkPipelineStageFlags srcStages;
|
|
VkPipelineStageFlags dstStages;
|
|
VkBufferMemoryBarrier barrier;
|
|
} qfv_bufferbarrier_t;
|
|
|
|
//XXX Note: imageBarriers and the enum must be kept in sync
|
|
enum {
|
|
qfv_LT_Undefined_to_TransferDst,
|
|
qfv_LT_TransferDst_to_TransferSrc,
|
|
qfv_LT_TransferDst_to_ShaderReadOnly,
|
|
qfv_LT_TransferSrc_to_ShaderReadOnly,
|
|
qfv_LT_ShaderReadOnly_to_TransferDst,
|
|
qfv_LT_Undefined_to_DepthStencil,
|
|
qfv_LT_Undefined_to_Color,
|
|
};
|
|
|
|
//XXX Note: bufferBarriers and the enum must be kept in sync
|
|
enum {
|
|
qfv_BB_Unknown_to_TransferWrite,
|
|
qfv_BB_TransferWrite_to_VertexAttrRead,
|
|
qfv_BB_TransferWrite_to_IndexRead,
|
|
qfv_BB_TransferWrite_to_UniformRead,
|
|
};
|
|
|
|
extern const qfv_imagebarrier_t imageBarriers[];
|
|
extern const qfv_bufferbarrier_t bufferBarriers[];
|
|
|
|
#endif//__QF_Vulkan_barrier_h
|