We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1820792 commit f93c893Copy full SHA for f93c893
render/naga-pixelbender/src/lib.rs
@@ -884,14 +884,15 @@ impl ShaderBuilder<'_> {
884
right: src,
885
})
886
}
887
- Opcode::Sub | Opcode::Add | Opcode::Mul => {
+ Opcode::Sub | Opcode::Add | Opcode::Mul | Opcode::Div => {
888
// The destination is also used as the first operand: 'dst = dst <op> src'
889
let left = self.load_src_register(&dst)?;
890
891
let op = match opcode {
892
Opcode::Sub => BinaryOperator::Subtract,
893
Opcode::Add => BinaryOperator::Add,
894
Opcode::Mul => BinaryOperator::Multiply,
895
+ Opcode::Div => BinaryOperator::Divide,
896
_ => unreachable!(),
897
};
898
0 commit comments