2018-03-05 15:42:38 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct TestStruct
|
|
|
|
{
|
|
|
|
packed_float3 position;
|
|
|
|
float radius;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CB0
|
|
|
|
{
|
2019-10-24 10:22:30 +00:00
|
|
|
TestStruct CB0[16];
|
2018-03-05 15:42:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
|
|
|
float4 _entryPointOutput [[color(0)]];
|
|
|
|
};
|
|
|
|
|
2019-05-31 11:19:33 +00:00
|
|
|
fragment main0_out main0(constant CB0& _26 [[buffer(0)]])
|
2018-03-05 15:42:38 +00:00
|
|
|
{
|
|
|
|
main0_out out = {};
|
2018-03-13 11:13:01 +00:00
|
|
|
out._entryPointOutput = float4(_26.CB0[1].position[0], _26.CB0[1].position[1], _26.CB0[1].position[2], _26.CB0[1].radius);
|
2018-03-05 15:42:38 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|