summaryrefslogtreecommitdiffstats
path: root/third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert')
-rw-r--r--third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert20
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert b/third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert
new file mode 100644
index 0000000000..f84c0a5ca7
--- /dev/null
+++ b/third_party/rust/spirv-cross-internal/tests/shaders/two_ubo.vert
@@ -0,0 +1,20 @@
+#version 310 es
+
+layout(std140) uniform ubo1
+{
+ mat4 a;
+ float b;
+ vec4 c[2];
+};
+
+layout(std140) uniform ubo2
+{
+ float d;
+ vec3 e;
+ vec3 f;
+};
+
+void main()
+{
+ gl_Position = vec4(a[1][2] + b + c[1].y + d + e.x + f.z);
+}