Skip to content

Commit

Permalink
Fix point_size type for MSL
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpydog committed Nov 29, 2019
1 parent 7454de7 commit 2a78300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/mojoshader_profile_metal.c
Expand Up @@ -907,7 +907,7 @@ void emit_METAL_attribute(Context *ctx, RegisterType regtype, int regnum,
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);
Expand Down

0 comments on commit 2a78300

Please sign in to comment.