OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages]; | 100 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages]; |
101 | 101 |
102 // To enable experimental geometry shader code (not for use in | 102 // To enable experimental geometry shader code (not for use in |
103 // production) | 103 // production) |
104 #if GR_GL_EXPERIMENTAL_GS | 104 #if GR_GL_EXPERIMENTAL_GS |
105 bool fExperimentalGS; | 105 bool fExperimentalGS; |
106 #endif | 106 #endif |
107 | 107 |
108 GrGLShaderBuilder::DstReadKey fDstRead; // set by GrGLShaderBuil der if there | 108 GrGLShaderBuilder::DstReadKey fDstRead; // set by GrGLShaderBuil der if there |
109 // are effects that must read the dst. | 109 // are effects that must read the dst. |
110 // Otherwise, 0. | 110 // Otherwise, 0. |
robertphillips
2013/05/10 13:53:58
fFragPosKey?
bsalomon
2013/05/13 15:16:49
Done, and changed fDstRead->fDstReadKey
| |
111 GrGLShaderBuilder::FragPosKey fFragPos; // set by GrGLShaderBuil der if there are | |
112 // effects that read the fragment position. | |
113 // Otherwise, 0. | |
111 | 114 |
112 // should the FS discard if the coverage is zero (to avoid stencil manipulat ion) | 115 // should the FS discard if the coverage is zero (to avoid stencil manipulat ion) |
113 SkBool8 fDiscardIfZeroCoverage; | 116 SkBool8 fDiscardIfZeroCoverage; |
114 | 117 |
115 uint8_t fColorInput; // casts to enum ColorIn put | 118 uint8_t fColorInput; // casts to enum ColorIn put |
116 uint8_t fCoverageInput; // casts to enum ColorIn put | 119 uint8_t fCoverageInput; // casts to enum ColorIn put |
117 uint8_t fCoverageOutput; // casts to enum Coverag eOutput | 120 uint8_t fCoverageOutput; // casts to enum Coverag eOutput |
118 | 121 |
119 int8_t fFirstCoverageStage; | 122 int8_t fFirstCoverageStage; |
120 SkBool8 fEmitsPointSize; | 123 SkBool8 fEmitsPointSize; |
121 uint8_t fColorFilterXfermode; // casts to enum SkXferm ode::Mode | 124 uint8_t fColorFilterXfermode; // casts to enum SkXferm ode::Mode |
122 | 125 |
123 int8_t fPositionAttributeIndex; | 126 int8_t fPositionAttributeIndex; |
124 int8_t fLocalCoordAttributeIndex; | 127 int8_t fLocalCoordAttributeIndex; |
125 int8_t fColorAttributeIndex; | 128 int8_t fColorAttributeIndex; |
126 int8_t fCoverageAttributeIndex; | 129 int8_t fCoverageAttributeIndex; |
127 | 130 |
128 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all | 131 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all |
129 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending). | 132 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending). |
130 friend class GrGLProgram; | 133 friend class GrGLProgram; |
131 friend class GrGLShaderBuilder; | 134 friend class GrGLShaderBuilder; |
132 }; | 135 }; |
133 | 136 |
134 #endif | 137 #endif |
OLD | NEW |