summaryrefslogtreecommitdiffstats
path: root/third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert')
-rw-r--r--third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert b/third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert
new file mode 100644
index 0000000000..cf8027a3b2
--- /dev/null
+++ b/third_party/rust/spirv-cross-internal/tests/shaders/initialization.vert
@@ -0,0 +1,14 @@
+#version 310 es
+
+layout(location = 0) in float rand;
+
+void main()
+{
+ vec4 pos;
+
+ if (rand > 0.5) {
+ pos = vec4(1.0);
+ }
+
+ gl_Position = pos;
+}