We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9084749 commit a19b076Copy full SHA for a19b076
2 files changed
naga/src/valid/function.rs
@@ -1097,7 +1097,7 @@ impl super::Validator {
1097
let good = if let Some(&Ti::Atomic(ref scalar)) = pointer_base_ty {
1098
// The Naga IR allows storing a scalar to an atomic.
1099
*value_ty == Ti::Scalar(*scalar)
1100
- } else if let Some(Ti::RayQuery { .. }) = pointer_base_ty {
+ } else if let Some(&Ti::RayQuery { .. }) = pointer_base_ty {
1101
return Err(FunctionError::RayQueryStore(pointer)
1102
.with_span_context((
1103
context.expressions.get_span(pointer),
naga/tests/naga/wgsl_errors.rs
@@ -5660,4 +5660,4 @@ fn ray_query_store() {
5660
}),
5661
Capabilities::RAY_QUERY
5662
}
5663
-}
+}
0 commit comments