rust-gpu/tests/ui/spirv-attr/bad-infer-storage-class.stderr
2021-05-20 14:46:09 +02:00

32 lines
1.5 KiB
Plaintext

error: storage class mismatch
--> $DIR/bad-infer-storage-class.rs:8:5
|
8 | #[spirv(uniform)] error: &Image!(2D, type=f32),
| ^^^^^^^^-------^^^^^^^^^^---------------------
| | |
| | UniformConstant inferred from type
| Uniform specified in attribute
|
help: remove storage class attribute to use UniformConstant as storage class
--> $DIR/bad-infer-storage-class.rs:8:13
|
8 | #[spirv(uniform)] error: &Image!(2D, type=f32),
| ^^^^^^^
warning: redundant storage class specifier, storage class is inferred from type
--> $DIR/bad-infer-storage-class.rs:9:13
|
9 | #[spirv(uniform_constant)] warning: &Image!(2D, type=f32),
| ^^^^^^^^^^^^^^^^
error: entry parameter type must be by-reference: `&spirv_std::image::Image<f32, spirv_std::image::Dimensionality::TwoD, spirv_std::image::ImageDepth::Unknown, spirv_std::image::Arrayed::False, spirv_std::image::Multisampled::False, spirv_std::image::Sampled::Unknown, spirv_std::image::ImageFormat::Unknown, core::option::Option::<spirv_std::image::AccessQualifier>::None>`
--> $DIR/bad-infer-storage-class.rs:15:27
|
15 | pub fn issue_585(invalid: Image!(2D, type=f32)) {}
| ^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `Image` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors; 1 warning emitted