mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-out] Add and implement bitwise_and
This commit is contained in:
committed by
Dzmitry Malyshau
parent
cbcdcf470f
commit
d0de2faa73
@@ -696,6 +696,15 @@ pub(super) fn instruction_matrix_times_matrix(
|
||||
// Bit Instructions
|
||||
//
|
||||
|
||||
pub(super) fn instruction_bitwise_and(
|
||||
result_type_id: Word,
|
||||
id: Word,
|
||||
operand_1: Word,
|
||||
operand_2: Word,
|
||||
) -> Instruction {
|
||||
instruction_binary(Op::BitwiseAnd, result_type_id, id, operand_1, operand_2)
|
||||
}
|
||||
|
||||
//
|
||||
// Relational and Logical Instructions
|
||||
//
|
||||
|
||||
@@ -1214,6 +1214,15 @@ impl Writer {
|
||||
},
|
||||
_ => unreachable!(),
|
||||
},
|
||||
crate::BinaryOperator::And => (
|
||||
super::instructions::instruction_bitwise_and(
|
||||
left_result_type_id,
|
||||
id,
|
||||
left_id,
|
||||
right_id,
|
||||
),
|
||||
left_lookup_ty,
|
||||
),
|
||||
_ => unimplemented!("{:?}", op),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user