summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-hlsl-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-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag37
1 files changed, 37 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag
new file mode 100644
index 00000000000..e7ffd8d6069
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag
@@ -0,0 +1,37 @@
+struct EmptyStructTest
+{
+ int empty_struct_member;
+};
+
+struct EmptyStruct2Test
+{
+ EmptyStructTest _m0;
+};
+
+static const EmptyStructTest _30 = { 0 };
+static const EmptyStruct2Test _20 = { { 0 } };
+
+float GetValue(EmptyStruct2Test self)
+{
+ return 0.0f;
+}
+
+float GetValue_1(EmptyStruct2Test self)
+{
+ return 0.0f;
+}
+
+void frag_main()
+{
+ EmptyStructTest _25 = { 0 };
+ EmptyStruct2Test _26 = { _25 };
+ EmptyStruct2Test emptyStruct;
+ float value = GetValue(emptyStruct);
+ value = GetValue_1(_26);
+ value = GetValue_1(_20);
+}
+
+void main()
+{
+ frag_main();
+}