cranpose 0.28.0

Build desktop, mobile and web apps with composable Rust functions
Documentation
1
2
3
4
5
6
7
#version 450
// One triangle that covers the render target. The picture's conversion needs no vertex data.

void main() {
    vec2 corner = vec2(float((gl_VertexIndex << 1) & 2), float(gl_VertexIndex & 2));
    gl_Position = vec4(corner * 2.0 - 1.0, 0.0, 1.0);
}