SPIRV-Cross/reference/shaders-msl/vert/pointsize.vert
Hans-Kristian Arntzen de33d89074 Add explicit in/out locations everywhere.
Needed for newer glslang. With Vulkan semantics for SPIR-V, all
locations must be explicitly defined.
2017-06-21 09:39:08 +02:00

34 lines
592 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct params
{
float4x4 mvp;
float psize;
};
struct main0_in
{
float4 color0 [[attribute(1)]];
float4 position [[attribute(0)]];
};
struct main0_out
{
float4 color [[user(locn0)]];
float4 gl_Position [[position]];
float gl_PointSize [[point_size]];
};
vertex main0_out main0(main0_in in [[stage_in]], constant params& _19 [[buffer(0)]])
{
main0_out out = {};
out.gl_Position = _19.mvp * in.position;
out.gl_PointSize = _19.psize;
out.color = in.color0;
return out;
}