mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 01:22:51 +00:00
21 lines
405 B
C
21 lines
405 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 iimage2D heads;
|