mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 05:09:59 +00:00
glasm: Implement gl_FrongFacing attribute
This commit is contained in:
parent
8b7d5912d6
commit
c560bf99c2
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
|
|||
case IR::Attribute::VertexId:
|
||||
ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name);
|
||||
break;
|
||||
case IR::Attribute::FrontFace:
|
||||
ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name);
|
||||
break;
|
||||
default:
|
||||
throw NotImplementedException("Get attribute {}", attr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue