mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
Add support for multi view extensions
This commit is contained in:
1 parent
cd65484a22
commit
60d0bf850b
9 files changed
+63
-1
No files matched your search
@@ -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