mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
refactor(naga): invert coordinate operand typeck to is_none_or
This commit is contained in:
@@ -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