2018-06-24 19:06:12 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
|
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
|
|
|
float4 gl_Position [[position]];
|
2018-06-25 15:40:20 +00:00
|
|
|
float gl_PointSize [[point_size]];
|
2018-06-24 19:06:12 +00:00
|
|
|
};
|
|
|
|
|
2018-06-25 15:40:20 +00:00
|
|
|
void write_outblock(thread float4& gl_Position, thread float& gl_PointSize)
|
2018-06-24 19:06:12 +00:00
|
|
|
{
|
2018-06-25 15:40:20 +00:00
|
|
|
gl_PointSize = 1.0;
|
|
|
|
gl_Position = float4(gl_PointSize);
|
2018-06-24 19:06:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
vertex main0_out main0()
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
2018-06-25 15:40:20 +00:00
|
|
|
write_outblock(out.gl_Position, out.gl_PointSize);
|
2018-06-24 19:06:12 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|