shader: Implement front face

This commit is contained in:
ReinUsesLisp 2021-03-27 02:55:37 -03:00 committed by ameerj
parent a806b29cb9
commit f0031babeb
5 changed files with 12 additions and 0 deletions

View file

@ -44,6 +44,9 @@ void GetAttribute(Info& info, IR::Attribute attribute) {
case IR::Attribute::VertexId:
info.loads_vertex_id = true;
break;
case IR::Attribute::FrontFace:
info.loads_front_face = true;
break;
default:
throw NotImplementedException("Get attribute {}", attribute);
}