Skip to content

Commit 469ab9a

Browse files
committed
feedback
1 parent 71b8837 commit 469ab9a

File tree

7 files changed

+4
-674
lines changed

7 files changed

+4
-674
lines changed

naga/src/valid/interface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ impl VaryingContext<'_> {
460460
));
461461
}
462462
}
463+
// If this is per-vertex, we change the type we validate to the inner type, otherwise we leave it be.
464+
// This lets all validation be done on the inner type once we've ensured the per-vertex is array<T, 3>
463465
let (ty, ty_inner) = if interpolation == Some(crate::Interpolation::PerVertex) {
464466
let three = crate::ArraySize::Constant(core::num::NonZeroU32::new(3).unwrap());
465467
match ty_inner {

naga/tests/in/spv/per-vertex.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
capabilities = "PER_VERTEX"
2-
targets = "IR | SPIRV | WGSL"
2+
targets = "SPIRV | WGSL"

naga/tests/in/wgsl/per-vertex.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
capabilities = "PER_VERTEX"
2-
targets = "IR | WGSL | SPIRV"
2+
targets = "WGSL | SPIRV"

naga/tests/out/ir/spv-per-vertex.compact.ron

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)