SPIRV-Cross/reference/shaders-msl/vert/set_builtin_in_func.vert

28 lines
543 B
GLSL
Raw Normal View History

#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]];
};
static inline __attribute__((always_inline))
void write_outblock(thread float4& gl_Position, thread float& gl_PointSize)
{
2018-06-25 15:40:20 +00:00
gl_PointSize = 1.0;
gl_Position = float4(gl_PointSize);
}
vertex main0_out main0()
{
main0_out out = {};
2018-06-25 15:40:20 +00:00
write_outblock(out.gl_Position, out.gl_PointSize);
return out;
}