[spv-in] work around sign differences in OpIAdd and OpISubtract

This commit is contained in:
Dzmitry Malyshau
2021-04-24 00:52:44 -04:00
committed by Dzmitry Malyshau
parent 64856a808e
commit 34b830da17
2 changed files with 79 additions and 2 deletions

View File

@@ -693,6 +693,16 @@ impl super::Validator {
}
};
if !good {
log::error!(
"Left: {:?} of type {:?}",
function.expressions[left],
left_inner
);
log::error!(
"Right: {:?} of type {:?}",
function.expressions[right],
right_inner
);
return Err(ExpressionError::InvalidBinaryOperandTypes(op, left, right));
}
ShaderStages::all()