2018-09-12 23:00:17 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
|
|
|
float4 gl_Position [[position]];
|
|
|
|
uint gl_Layer [[render_target_array_index]];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct main0_in
|
|
|
|
{
|
|
|
|
float4 coord [[attribute(0)]];
|
|
|
|
};
|
|
|
|
|
|
|
|
vertex main0_out main0(main0_in in [[stage_in]])
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
|
|
|
out.gl_Position = in.coord;
|
2018-09-19 14:13:30 +00:00
|
|
|
out.gl_Layer = uint(int(in.coord.z));
|
2018-09-12 23:00:17 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|