shader: Implement ViewportIndex

This commit is contained in:
FernandoS27 2021-04-01 08:34:45 +02:00 committed by ameerj
parent c7ed439bbc
commit 68bad0e922
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);
}