summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert17
1 files changed, 17 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert b/3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert
new file mode 100644
index 00000000000..b1721bc6027
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.pushConstant.vert
@@ -0,0 +1,17 @@
+#version 400
+
+layout(push_constant) uniform Material {
+ int kind;
+ float fa[3];
+} matInst;
+
+out vec4 color;
+
+void main()
+{
+ switch (matInst.kind) {
+ case 1: color = vec4(0.2); break;
+ case 2: color = vec4(0.5); break;
+ default: color = vec4(0.0); break;
+ }
+}