2018-04-05 14:26:54 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
|
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct EmptyStructTest
|
|
|
|
{
|
|
|
|
int empty_struct_member;
|
|
|
|
};
|
|
|
|
|
|
|
|
float GetValue(thread const EmptyStructTest& self)
|
|
|
|
{
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
2018-08-06 13:41:10 +00:00
|
|
|
float GetValue_1(EmptyStructTest self)
|
2018-04-05 14:26:54 +00:00
|
|
|
{
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment void main0()
|
|
|
|
{
|
|
|
|
EmptyStructTest _23 = EmptyStructTest{ 0 };
|
|
|
|
EmptyStructTest emptyStruct;
|
|
|
|
float value = GetValue(emptyStruct);
|
|
|
|
value = GetValue_1(_23);
|
|
|
|
}
|
|
|
|
|