Neil Henning | b6b01f0 | 2018-10-23 15:02:29 +0100 | [diff] [blame] | 1 | #version 450 |
2 | |||||
3 | #extension GL_EXT_shader_8bit_storage: require | ||||
4 | |||||
5 | layout(binding = 0) readonly buffer Vertices | ||||
6 | { | ||||
7 | uint8_t vertices[]; | ||||
8 | }; | ||||
9 | |||||
10 | layout(location = 0) out vec4 color; | ||||
11 | |||||
12 | void main() | ||||
13 | { | ||||
14 | color = vec4(int(vertices[gl_VertexIndex])); | ||||
15 | } |