struct Hex { float heights[6]; uint colors[6]; }; layout(std430, buffer_reference) readonly buffer Region { uint q; uint r; Hex hexes[]; }; layout(std430, buffer_reference) readonly buffer HexContext { mat4 proj; mat4 view; Region regions[]; }; layout(std430, push_constant) uniform PushConstant { HexContext context; uint region; float time; } pc;