wgpu/tests/cases/glsl_preprocessor_abuse.vert
2021-01-23 10:02:07 -05:00

11 lines
201 B
GLSL

#version 450 core
#define MAIN void main() {
#define V_POSITION layout(location=0) in vec4 a_position;
#define ASSIGN_POSITION gl_Position = a_position;
V_POSITION
MAIN
ASSIGN_POSITION
}