quakeforge/libs/video/renderer/vulkan/shader/oit.h
Bill Currie 0ccee3032e [vulkan] Add partial support for cube maps to OIT
Partial because frame buffer creation isn't handled yet (using six
layers), but using layer a layer capable view and shaders doesn't cause
problems (other than maybe slightly slower code).
2023-02-14 13:24:47 +09:00

20 lines
410 B
C

#ifndef OIT_SET
#define OIT_SET 2
#endif
struct FragData {
vec4 color;
float depth;
int next;
};
layout (set = OIT_SET, binding = 0) coherent buffer FragCount {
int numFragments;
int maxFragments;
};
layout (set = OIT_SET, binding = 1) buffer Fragments {
FragData fragments[];
};
layout (set = OIT_SET, binding = 2, r32i) coherent uniform iimage2DArray heads;