Fix point_size type for MSL
authorCaleb Cornett <caleb.cornett@outlook.com>
Fri, 29 Nov 2019 15:41:54 -0500
changeset 1220 048797e6aae1
parent 1219 c239540656e7
child 1221 012dec2787aa
Fix point_size type for MSL
profiles/mojoshader_profile_metal.c
--- a/profiles/mojoshader_profile_metal.c	Mon Nov 25 20:21:41 2019 -0500
+++ b/profiles/mojoshader_profile_metal.c	Fri Nov 29 15:41:54 2019 -0500
@@ -907,7 +907,7 @@
                     output_line(ctx, "float4 %s [[position]];", var);
                     break;
                 case MOJOSHADER_USAGE_POINTSIZE:
-                    output_line(ctx, "float4 %s [[point_size]];", var);
+                    output_line(ctx, "float %s [[point_size]];", var);
                     break;
                 case MOJOSHADER_USAGE_COLOR:
                     output_line(ctx, "float4 %s [[user(color%d)]];", var, index);