#ifdef DESC [program] type: graphics vertex: main fragment: main [binding] name: mesh rate: vertex [attribute] name: position type: vec3 [struct] name: MVP [variable] name: model type: mat4 [variable] name: view_projection type: mat4 [cbuffer] name: c_mvp type: MVP stage: vertex #endif #ifdef VERTEX_SHADER void main() { vec4 pos = c_mvp.model * vec4(position, 1.0); gl_Position = c_mvp.view_projection * pos; } #endif #ifdef FRAGMENT_SHADER void main() {} #endif