mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 10:52:48 -06:00
glasm: Implement gl_PointCoord
This commit is contained in:
parent
12dcb9fcc2
commit
9415c435fc
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
|
||||||
case IR::Attribute::PositionW:
|
case IR::Attribute::PositionW:
|
||||||
ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle);
|
ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle);
|
||||||
break;
|
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:
|
case IR::Attribute::InstanceId:
|
||||||
ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name);
|
ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue