summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc32
1 files changed, 32 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc b/3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc
new file mode 100644
index 00000000000..c3719f96d17
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.450.tesc
@@ -0,0 +1,32 @@
+#version 450 core
+
+layout(vertices = 4) out;
+
+patch out vec4 patchOut;
+
+struct S {
+ float sMem1; // should not see a patch decoration
+ float sMem2; // should not see a patch decoration
+};
+
+layout(location = 12) patch out TheBlock {
+ highp float bMem1; // should not see a location decoration
+ highp float bMem2;
+ S s; // should see a patch decoration
+} tcBlock[2];
+
+void main()
+{
+}
+
+layout(location = 2) patch out SingleBlock {
+ highp float bMem1; // should not see a location decoration
+ highp float bMem2;
+ S s; // should see a patch decoration
+} singleBlock;
+
+layout(location = 20) patch out bn {
+ vec4 v1; // location 20
+ layout(location = 24) vec4 v2; // location 24
+ vec4 v3; // location 25
+}; \ No newline at end of file