2024-11-01 15:46:27 -06:00
|
|
|
struct Hex {
|
|
|
|
float heights[6];
|
2024-11-02 22:02:32 -06:00
|
|
|
uint colors[7];
|
2024-11-01 15:46:27 -06:00
|
|
|
};
|
|
|
|
|
2024-11-01 17:34:41 -06:00
|
|
|
layout(std430, buffer_reference) readonly buffer Region {
|
2024-11-02 12:07:11 -06:00
|
|
|
int q;
|
|
|
|
int r;
|
2024-11-01 17:34:41 -06:00
|
|
|
Hex hexes[];
|
2024-11-01 15:46:27 -06:00
|
|
|
};
|
|
|
|
|
2024-10-30 21:24:03 -06:00
|
|
|
layout(std430, buffer_reference) readonly buffer HexContext {
|
|
|
|
mat4 proj;
|
|
|
|
mat4 view;
|
2024-11-04 17:51:10 -07:00
|
|
|
vec4 click_start;
|
|
|
|
vec4 click_end;
|
|
|
|
vec4 hover_start;
|
|
|
|
vec4 hover_end;
|
2024-11-01 17:34:41 -06:00
|
|
|
Region regions[];
|
2024-10-30 21:24:03 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
layout(std430, push_constant) uniform PushConstant {
|
|
|
|
HexContext context;
|
|
|
|
float time;
|
|
|
|
} pc;
|