Skip to content

Commit 5ebd674

Browse files
committed
scalar or vector: ignore compiletest on early spv versions
1 parent 461c0dc commit 5ebd674

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/compiletests/ui/arch/subgroup/subgroup_composite.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
// build-pass
22
// compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformBallot,+GroupNonUniformShuffle,+GroupNonUniformShuffleRelative,+ext:SPV_KHR_vulkan_memory_model
33
// normalize-stderr-test "OpLine .*\n" -> ""
4+
// ignore-vulkan1.0
5+
// ignore-vulkan1.1
6+
// ignore-spv1.0
7+
// ignore-spv1.1
8+
// ignore-spv1.2
9+
// ignore-spv1.3
10+
// ignore-spv1.4
411

512
use glam::*;
613
use spirv_std::ScalarOrVectorComposite;
@@ -35,6 +42,7 @@ pub fn main(
3542
};
3643

3744
let mut out = UVec3::ZERO;
45+
// before spv1.5 / vulkan1.2, this id = 19 must be a constant
3846
out += subgroup_broadcast(my_struct, 19).b;
3947
out += subgroup_broadcast_first(my_struct).b;
4048
out += subgroup_shuffle(my_struct, 2).b;

0 commit comments

Comments
 (0)