mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-in] work around sign differences in OpIAdd and OpISubtract
This commit is contained in:
committed by
Dzmitry Malyshau
parent
64856a808e
commit
34b830da17
@@ -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