mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Add support for multi view extensions
This commit is contained in:
committed by
Dzmitry Malyshau
parent
cd65484a22
commit
60d0bf850b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user