| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SKSL_INTERFACEBLOCK | 8 #ifndef SKSL_INTERFACEBLOCK |
| 9 #define SKSL_INTERFACEBLOCK | 9 #define SKSL_INTERFACEBLOCK |
| 10 | 10 |
| 11 #include "SkSLProgramElement.h" | 11 #include "SkSLProgramElement.h" |
| 12 #include "SkSLVarDeclaration.h" | 12 #include "SkSLVarDeclarations.h" |
| 13 | 13 |
| 14 namespace SkSL { | 14 namespace SkSL { |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * An interface block, as in: | 17 * An interface block, as in: |
| 18 * | 18 * |
| 19 * out gl_PerVertex { | 19 * out gl_PerVertex { |
| 20 * layout(builtin=0) vec4 gl_Position; | 20 * layout(builtin=0) vec4 gl_Position; |
| 21 * layout(builtin=1) float gl_PointSize; | 21 * layout(builtin=1) float gl_PointSize; |
| 22 * }; | 22 * }; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 const Variable& fVariable; | 43 const Variable& fVariable; |
| 44 const std::shared_ptr<SymbolTable> fTypeOwner; | 44 const std::shared_ptr<SymbolTable> fTypeOwner; |
| 45 | 45 |
| 46 typedef ProgramElement INHERITED; | 46 typedef ProgramElement INHERITED; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace | 49 } // namespace |
| 50 | 50 |
| 51 #endif | 51 #endif |
| OLD | NEW |