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

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-04-24 01:00:33 -04:00
1 parent 64856a808e
commit 34b830da17
2 files changed
+79 -2

No files matched your search

+10
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()