4.5 Precision and Precision Qualifiers...................................................................................... 26
4.6 Variance and the Invariant Qualifier................................................................................... 26
4.6.1 The Invariant Qualifier................................................................................................ 26
4.6.2 Invariance of Constant Expressions............................................................................ 28
4.7 Order of Qualification......................................................................................................... 28
5 Operators and Expressions.........................................................................................................29
5.1 Operators............................................................................................................................. 29
5.2 Array Operations................................................................................................................ 30
5.3 Function Calls..................................................................................................................... 30
5.4 Constructors........................................................................................................................ 30
5.4.1 Conversion and Scalar Constructors........................................................................... 30
5.4.2 Vector and Matrix Constructors.................................................................................. 30
5.4.3 Structure Constructors................................................................................................. 32
5.4.4 Array Constructors...................................................................................................... 33
5.5 Vector Components.............................................................................................................33
5.6 Matrix Components.............................................................................................................34
5.7 Structure and Array Operations...........................................................................................35
5.8 Assignments........................................................................................................................ 35
5.9 Expressions......................................................................................................................... 36
5.10 Vector and Matrix Operations...........................................................................................38
6 Statements and Structure............................................................................................................41
6.1 Function Definitions............................................................................................................42
6.1.1 Function Calling Conventions.....................................................................................43
6.2 Selection..............................................................................................................................45
6.3 Iteration............................................................................................................................... 45
6.4 Jumps...................................................................................................................................46
7 Built-in Variables.......................................................................................................................47
7.1 Vertex Shader Special Variables.........................................................................................47
7.2 Fragment Shader Special Variables.................................................................................... 47
7.3 Vertex Shader Built-In Attributes....................................................................................... 49
7.4 Built-In Constants............................................................................................................... 49
7.5 Built-In Uniform State........................................................................................................ 50
7.6 Varying Variables................................................................................................................53
8 Built-in Functions...................................................................................................................... 55
8.1 Angle and Trigonometry Functions.....................................................................................56
8.2 Exponential Functions.........................................................................................................57
8.3 Common Functions............................................................................................................. 57
8.4 Geometric Functions........................................................................................................... 59
8.5 Matrix Functions................................................................................................................. 61
iv
评论0
最新资源