Add support for multi view extensions

This commit is contained in:
João Capucho
2021-09-19 20:46:07 +01:00
committed by Dzmitry Malyshau
parent cd65484a22
commit 60d0bf850b
9 changed files with 63 additions and 1 deletions

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