dawn-cmake/test/tint/shader_io/invariant_struct_member.wgsl.expected.glsl
Ben Clayton 6c098baedf tint: Implement constant expression structures
Bug: tint:1611
Change-Id: Id04c31ade297a68e7e2941efafbd812ba631fc41
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95946
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-07-14 20:46:39 +00:00

20 lines
346 B
GLSL

#version 310 es
struct Out {
vec4 pos;
};
Out tint_symbol() {
Out tint_symbol_1 = Out(vec4(0.0f));
return tint_symbol_1;
}
void main() {
gl_PointSize = 1.0;
Out inner_result = tint_symbol();
gl_Position = inner_result.pos;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}