Skip to content

Commit 30024f8

Browse files
committed
Fix build
1 parent 4f3096a commit 30024f8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

tests/compiletests/ui/image/query/rect_image_query_size.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// build-pass
22
// compile-flags: -C target-feature=+ImageQuery,+SampledRect
3+
// ignore-vulkan1.0
4+
// ignore-vulkan1.1
5+
// ignore-vulkan1.1spv1.4
6+
// ignore-vulkan1.2
37

48
use spirv_std::spirv;
59
use spirv_std::{Image, arch};

tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
// build-fail
22
// normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$SPIRV_STD_SRC/"
33
// compile-flags: -C target-feature=+ImageQuery,+SampledRect
4+
// ignore-vulkan1.0
5+
// ignore-vulkan1.1
6+
// ignore-vulkan1.1spv1.4
7+
// ignore-vulkan1.2
48

5-
use spirv_std::{Image, arch, spirv, image::SampledImage};
9+
use spirv_std::{Image, arch, image::SampledImage, spirv};
610

711
#[spirv(fragment)]
812
pub fn main(
@@ -13,4 +17,4 @@ pub fn main(
1317
) {
1418
// This should fail because rect images don't support query_size_lod
1519
*output = rect_sampled.query_size_lod(0);
16-
}
20+
}

tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0277]: the trait bound `Image<f32, 4, 2, 0, 0, 1, 0, 4>: HasQuerySizeLod` is not satisfied
2-
--> $DIR/sampled_image_rect_query_size_lod_err.rs:15:28
2+
--> $DIR/sampled_image_rect_query_size_lod_err.rs:19:28
33
|
4-
15 | *output = rect_sampled.query_size_lod(0);
4+
19 | *output = rect_sampled.query_size_lod(0);
55
| ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0, 4>`
66
|
77
= help: the following other types implement trait `HasQuerySizeLod`:

0 commit comments

Comments
 (0)