mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
0ccee3032e
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).
20 lines
410 B
C
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;
|