Enum naga::back::glsl::BinaryOperation
source · enum BinaryOperation {
VectorCompare,
VectorComponentWise,
Modulo,
Other,
}
Expand description
Binary operation with a different logic on the GLSL side.
Variants§
VectorCompare
Vector comparison should use the function like greaterThan()
, etc.
VectorComponentWise
Vector component wise operation; used to polyfill unsupported ops like |
and &
for bvecN
’s
Modulo
GLSL %
is SPIR-V OpUMod/OpSMod
and mod()
is OpFMod
, but BinaryOperator::Modulo
is OpFRem
.
Other
Any plain operation. No additional logic required.
Auto Trait Implementations§
impl Freeze for BinaryOperation
impl RefUnwindSafe for BinaryOperation
impl Send for BinaryOperation
impl Sync for BinaryOperation
impl Unpin for BinaryOperation
impl UnwindSafe for BinaryOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more