Skip to main content

call_binary_op

Function call_binary_op 

Source
pub fn call_binary_op(
    op: BinaryOperator,
    lhs: &Instance,
    rhs: &Instance,
    stage: ShaderStage,
) -> Result<Instance, Error>
Available on crate feature eval only.
Expand description

Call a binary operator.

The arguments must be loaded.

In practice, && and || operators are short-circuiting. Calling these operators here does not perform short-circuiting, as lhs and rhs are already computed.