blob: 61ba7bf1523b808a53cad727e270e978d8520d79 [file] [log] [blame]
Neil Henningb6b01f02018-10-23 15:02:29 +01001#version 450
2
3#extension GL_EXT_shader_8bit_storage: require
4
5layout(binding = 0) readonly buffer Vertices
6{
7 uint8_t vertices[];
8};
9
10layout(location = 0) out vec4 color;
11
12void main()
13{
14 color = vec4(int(vertices[gl_VertexIndex]));
15}