shader: Implement ViewportIndex

This commit is contained in:
FernandoS27
2021-04-01 08:34:45 +02:00
committed by ameerj
parent fd496d0401
commit d819ba4489
8 changed files with 33 additions and 2 deletions

View File

@ -81,6 +81,9 @@ void SetAttribute(Info& info, IR::Attribute attribute) {
case IR::Attribute::ClipDistance7:
info.stores_clip_distance = true;
break;
case IR::Attribute::ViewportIndex:
info.stores_viewport_index = true;
break;
default:
throw NotImplementedException("Set attribute {}", attribute);
}