shaderc-macro 0.1.0

Compile shaders with shaderc using macros at compile time
Documentation
1
2
3
4
5
6
7
8
9
#version 450

void main()
{
    float x = gl_VertexIndex - 1;
    float y = (gl_VertexIndex & 1) * 2 - 1;
	gl_Position = vec4(x * 0.5, y * 0.5, 0., 1.0);
}