
The OpenGL® Shading Language, Version 4.60.5 John Kessenich, Google (Editor and Author) ; Dave Baldwin and Randi Rost (Version 1.1 Authors) Version 4.60.5, Thu, 14 Jun 2018 16:22:42 +0000 Table of Contents 1. Introduction. 2 1.1. Changes . 2 1.2. Overview. 3 1.3. Error Handling . 4 1.4. Typographical Conventions . 4 1.5. Deprecation . 4 2. Overview of OpenGL Shading . 5 2.1. Vertex Processor . 5 2.2. Tessellation Control Processor . 5 2.3. Tessellation Evaluation Processor . 6 2.4. Geometry Processor . 6 2.5. Fragment Processor . 6 2.6. Compute Processor. 6 3. Basics. 8 3.1. Character Set and Phases of Compilation . 8 3.2. Source Strings . 9 3.3. Preprocessor . 9 3.4. Comments. 15 3.5. Tokens . 16 3.6. Keywords . 16 3.7. Identifiers . 19 3.8. Definitions . 19 4. Variables and Types. 22 4.1. Basic Types. 22 4.2. Scoping . 41 4.3. Storage Qualifiers . 43 4.4. Layout Qualifiers . 58 4.5. Interpolation Qualifiers . 89 4.6. Parameter Qualifiers . 91 4.7. Precision and Precision Qualifiers . 91 4.8. Variance and the Invariant Qualifier . 94 4.9. The Precise Qualifier . 96 4.10. Memory Qualifiers . 99 4.11. Specialization-Constant Qualifier. 102 4.12. Order and Repetition of Qualification. 103 4.13. Empty Declarations . 104 5. Operators and Expressions . 105 5.1. Operators . 105 5.2. Array Operations . 106 5.3. Function Calls . 106 5.4. Constructors. 106 5.5. Vector and Scalar Components and Length . 110 5.6. Matrix Components . 112 5.7. Structure and Array Operations . 113 5.8. Assignments. 114 5.9. Expressions . 115 5.10. Vector and Matrix Operations. 117 5.11. Out-of-Bounds Accesses . 119 5.12. Specialization Constant Operations. 119 6. Statements and Structure. 121 6.1. Function Definitions . 122.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages215 Page
-
File Size-