summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag11
1 files changed, 5 insertions, 6 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag
index 61d49d7836b..e30c5864b26 100644
--- a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag
+++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders-msl/asm/frag/empty-struct.asm.frag
@@ -7,24 +7,23 @@ using namespace metal;
struct EmptyStructTest
{
- int empty_struct_member;
};
-
-inline float GetValue(thread const EmptyStructTest& self)
+static inline __attribute__((always_inline))
+float GetValue(thread const EmptyStructTest& self)
{
return 0.0;
}
-inline float GetValue_1(EmptyStructTest self)
+static inline __attribute__((always_inline))
+float GetValue_1(EmptyStructTest self)
{
return 0.0;
}
fragment void main0()
{
- EmptyStructTest _23 = EmptyStructTest{ 0 };
EmptyStructTest emptyStruct;
float value = GetValue(emptyStruct);
- value = GetValue_1(_23);
+ value = GetValue_1(EmptyStructTest{ });
}