2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

glasm: Implement gl_FrongFacing attribute

This commit is contained in:
ReinUsesLisp 2021-05-18 21:04:27 -03:00 committed by ameerj
parent 8b7d5912d6
commit c560bf99c2

View file

@ -71,6 +71,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
case IR::Attribute::VertexId: case IR::Attribute::VertexId:
ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name); ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name);
break; break;
case IR::Attribute::FrontFace:
ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name);
break;
default: default:
throw NotImplementedException("Get attribute {}", attr); throw NotImplementedException("Get attribute {}", attr);
} }