2017-01-31 03:55:21 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct UBO
|
|
|
|
{
|
2019-10-24 10:22:30 +00:00
|
|
|
float4 Data[3][5];
|
2017-01-31 03:55:21 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_out
|
2017-01-31 03:55:21 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 gl_Position [[position]];
|
2017-01-31 03:55:21 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_in
|
2017-01-31 03:55:21 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
int2 aIndex [[attribute(0)]];
|
2017-01-31 03:55:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vertex main0_out main0(main0_in in [[stage_in]], constant UBO& _20 [[buffer(0)]])
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
|
|
|
out.gl_Position = _20.Data[in.aIndex.x][in.aIndex.y];
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|