summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag31
1 files changed, 31 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag
new file mode 100644
index 00000000000..0d3958b5b08
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-no-opt/asm/frag/empty-struct-in-struct.asm.frag
@@ -0,0 +1,31 @@
+#version 450
+
+struct EmptyStructTest
+{
+ int empty_struct_member;
+};
+
+struct EmptyStruct2Test
+{
+ EmptyStructTest _m0;
+};
+
+float GetValue(EmptyStruct2Test self)
+{
+ return 0.0;
+}
+
+float GetValue_1(EmptyStruct2Test self)
+{
+ return 0.0;
+}
+
+void main()
+{
+ EmptyStructTest _25 = EmptyStructTest(0);
+ EmptyStruct2Test emptyStruct;
+ float value = GetValue(emptyStruct);
+ value = GetValue_1(EmptyStruct2Test(_25));
+ value = GetValue_1(EmptyStruct2Test(EmptyStructTest(0)));
+}
+