dawn-cmake/test/tint/shader_io/vertex_output_builtins.wgsl...

14 lines
269 B
GLSL

#version 310 es
vec4 tint_symbol() {
return vec4(1.0f, 2.0f, 3.0f, 4.0f);
}
void main() {
vec4 inner_result = tint_symbol();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}