spv.1.3.8bitstorage-ubo.vert 259 B

12345678910111213141516
  1. #version 450
  2. #extension GL_EXT_shader_8bit_storage: require
  3. layout(binding = 0) readonly uniform Vertices
  4. {
  5. uint8_t vertices[512];
  6. };
  7. layout(location = 0) out vec4 color;
  8. void main()
  9. {
  10. color = vec4(int(vertices[gl_VertexIndex]));
  11. }