Add support for multi view extensions

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-09-19 17:38:27 -04:00
1 parent cd65484a22
commit 60d0bf850b
9 files changed
+63 -1

No files matched your search

+11
View File
@@ -158,6 +158,17 @@ impl VaryingContext<'_> {
width,
},
),
Bi::ViewIndex => (
match self.stage {
St::Vertex | St::Fragment => !self.output,
St::Compute => false,
},
*ty_inner
== Ti::Scalar {
kind: Sk::Sint,
width,
},
),
Bi::FragDepth => (
self.stage == St::Fragment && self.output,
*ty_inner