mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
refactor(naga): invert coordinate operand typeck to is_none_or
This commit is contained in:
1 parent
c626d4f819
commit
4200136e2c
1 file changed
+2
-2
@@ -1140,10 +1140,10 @@ impl super::Validator {
|
||||
};
|
||||
|
||||
// The `coordinate` operand must be a vector of the appropriate size.
|
||||
if !context
|
||||
if context
|
||||
.resolve_type(coordinate, &self.valid_expression_set)?
|
||||
.image_storage_coordinates()
|
||||
.is_some_and(|coord_dim| coord_dim == dim)
|
||||
.is_none_or(|coord_dim| coord_dim != dim)
|
||||
{
|
||||
return Err(FunctionError::InvalidImageStore(
|
||||
ExpressionError::InvalidImageCoordinateType(dim, coordinate),
|
||||
|
||||
Reference in new issue
Block a user