OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrGLFragmentShaderBuilder_DEFINED | 8 #ifndef GrGLFragmentShaderBuilder_DEFINED |
9 #define GrGLFragmentShaderBuilder_DEFINED | 9 #define GrGLFragmentShaderBuilder_DEFINED |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 kTopLeftFragPosRead_FragPosKey = 0x1,// Read frag pos relative to t
op-left. | 142 kTopLeftFragPosRead_FragPosKey = 0x1,// Read frag pos relative to t
op-left. |
143 kBottomLeftFragPosRead_FragPosKey = 0x2,// Read frag pos relative to b
ottom-left. | 143 kBottomLeftFragPosRead_FragPosKey = 0x2,// Read frag pos relative to b
ottom-left. |
144 }; | 144 }; |
145 | 145 |
146 static const char* kDstCopyColorName; | 146 static const char* kDstCopyColorName; |
147 | 147 |
148 bool fHasCustomColorOutput; | 148 bool fHasCustomColorOutput; |
149 bool fHasSecondaryOutput; | 149 bool fHasSecondaryOutput; |
150 bool fSetupFragPosition; | 150 bool fSetupFragPosition; |
151 bool fTopLeftFragPosRead; | 151 bool fTopLeftFragPosRead; |
| 152 int fCustomColorOutputIndex; |
152 | 153 |
153 // some state to verify shaders and effects are consistent, this is reset be
tween effects by | 154 // some state to verify shaders and effects are consistent, this is reset be
tween effects by |
154 // the program creator | 155 // the program creator |
155 bool fHasReadDstColor; | 156 bool fHasReadDstColor; |
156 bool fHasReadFragmentPosition; | 157 bool fHasReadFragmentPosition; |
157 | 158 |
158 friend class GrGLNvprProgramBuilder; | 159 friend class GrGLNvprProgramBuilder; |
159 friend class GrGLProgramBuilder; | 160 friend class GrGLProgramBuilder; |
160 | 161 |
161 typedef GrGLFPFragmentBuilder INHERITED; | 162 typedef GrGLFPFragmentBuilder INHERITED; |
162 }; | 163 }; |
163 | 164 |
164 #endif | 165 #endif |
OLD | NEW |