bgfx/3rdparty/glslang/Test/spv.8bitstorage-ubo.vert
Branimir Karadžić 5b704808d6 Updated glslang.
2018-10-26 18:44:52 -07:00

16 lines
259 B
GLSL

#version 450
#extension GL_EXT_shader_8bit_storage: require
layout(binding = 0) readonly uniform Vertices
{
uint8_t vertices[512];
};
layout(location = 0) out vec4 color;
void main()
{
color = vec4(int(vertices[gl_VertexIndex]));
}