shader: Add PointCoord attribute

This commit is contained in:
FernandoS27 2021-03-29 20:05:38 +02:00 committed by ameerj
parent 357a47d944
commit a8c2a85610
5 changed files with 16 additions and 0 deletions

View file

@ -47,6 +47,10 @@ void GetAttribute(Info& info, IR::Attribute attribute) {
case IR::Attribute::FrontFace:
info.loads_front_face = true;
break;
case IR::Attribute::PointSpriteS:
case IR::Attribute::PointSpriteT:
info.loads_point_coord = true;
break;
default:
throw NotImplementedException("Get attribute {}", attribute);
}