Addition and Subtraction Operators
The addition and subtraction operators return the class of the nearest common ancestor when the right-side operands are of different signs. The following code provides examples of usage and miscellaneous exceptions.
Syntax Usage for Addition and Subtraction Operators
Return nearest common ancestor type,
C = A + B;
Returns type left-hand operand type.
A += B;
B -= A;
C = A + C;
C = A + (Is16vec4)B;
Addition and Subtraction Operators with Corresponding Intrinsics
R = A + B
R += A