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
|
|
|
|
{
|
|
|
|
};
|
2019-08-14 15:09:39 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
float GetValue(thread const EmptyStructTest& self)
|
2018-04-05 14:26:54 +00:00
|
|
|
{
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
2019-08-14 15:09:39 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
float GetValue_1(EmptyStructTest self)
|
2018-04-05 14:26:54 +00:00
|
|
|
{
|
|
|
|
return 0.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment void main0()
|
|
|
|
{
|
|
|
|
EmptyStructTest emptyStruct;
|
|
|
|
float value = GetValue(emptyStruct);
|
2019-10-24 15:05:55 +00:00
|
|
|
value = GetValue_1(EmptyStructTest{ });
|
2018-04-05 14:26:54 +00:00
|
|
|
}
|
|
|
|
|