Browse Source

glasm: Implement gl_PointCoord

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
05bd52b119
  1. 4
      src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp

4
src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp

@ -65,6 +65,10 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
case IR::Attribute::PositionW:
ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle);
break;
case IR::Attribute::PointSpriteS:
case IR::Attribute::PointSpriteT:
ctx.Add("MOV.F {}.x,{}.pointcoord.{};", inst, ctx.stage_name, swizzle);
break;
case IR::Attribute::InstanceId:
ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name);
break;

Loading…
Cancel
Save