mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
[spv-in] work around sign differences in OpIAdd and OpISubtract
This commit is contained in:
1 parent
64856a808e
commit
34b830da17
2 files changed
+79
-2
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user