mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-15 21:14:35 +02:00
Add a comment about the use of layout locations
This commit is contained in:
@@ -12,9 +12,12 @@ layout(std140) uniform CellRenderData {
|
||||
uint color_table[256];
|
||||
};
|
||||
|
||||
layout(location=0) in uvec3 colors;
|
||||
layout(location=1) in uvec4 sprite_coords;
|
||||
layout(location=2) in float is_selected;
|
||||
// Have to use fixed locations here as all variants of the cell program share the same VAO
|
||||
// locations 0 and 1 are used in the graphics program which also shares the same VAO
|
||||
layout(location=2) in uvec3 colors;
|
||||
layout(location=3) in uvec4 sprite_coords;
|
||||
layout(location=4) in float is_selected;
|
||||
|
||||
#if defined(FOREGROUND) || defined(ALL)
|
||||
|
||||
out vec3 sprite_pos;
|
||||
|
||||
Reference in New Issue
Block a user