summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert19
1 files changed, 19 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert b/3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert
new file mode 100644
index 00000000000..bb55c2d9262
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/reflection.linked.vert
@@ -0,0 +1,19 @@
+#version 440 core
+
+layout(binding = 0, std140) uniform ubo_block {
+ float unused_uniform;
+ float shared_uniform;
+ float vsonly_uniform;
+ float fsonly_uniform;
+} ubo;
+
+in float vertin;
+
+out float vertout;
+
+void main()
+{
+ vertout = vertin;
+ vertout += ubo.shared_uniform;
+ vertout += ubo.vsonly_uniform;
+}