Skip to content

Commit

Permalink
refactor(naga): invert coordinate operand typeck to is_none_or
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 31, 2025
1 parent ce33a63 commit b65a02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naga/src/valid/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,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),
Expand Down

0 comments on commit b65a02b

Please sign in to comment.