rafx 0.0.16

Rendering framework built on an extensible asset pipeline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 450

// These "semantic" annotations are matched with vertex data, allowing pipelines to be produced as needed for whatever
// data is in use at runtime

// @[semantic("POSITION")]
layout (location = 0) in vec4 pos;
// @[semantic("COLOR")]
layout (location = 1) in vec4 in_color;

layout (location = 0) out vec4 out_color;

void main() {
    out_color = in_color;
    gl_Position = pos;
}