Game Development Reference
In-Depth Information
Operators and Expressions
Some of the important operators involved in statements and expressions in the vertex and
fragment shader language are specified in the following list. The operators are basically similar to
corresponding operators in the Java and C++ languages.
++
Increment operator
--
Decrement operator
+
Addition operator
-
Subtraction operator
!
Not operator
*
Multiply operator
/
Divide by operator
<
Less than relational operator
>
Greater than relational operator
<=
Less than or equal to relational operator
>=
Greater than or equal to relational operator
==
Conditional equals operator
!=
Not equal to conditional operator
&&
Logical and operator
^^
Logical exclusive or operator
||
Logical inclusive or operator
=
Assignment operator
+=
Addition and assignment operator
-=
Subtraction and assignment operator
*=
Multiplication and assignment operator
/=
Division and assignment operator
 
Search WWH ::




Custom Search