OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #include "GrVkProgramDesc.h" | 7 #include "GrVkProgramDesc.h" |
8 | 8 |
9 //#include "GrVkProcessor.h" | 9 //#include "GrVkProcessor.h" |
10 #include "GrProcessor.h" | 10 #include "GrProcessor.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); | 155 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); |
156 | 156 |
157 if (pipeline.ignoresCoverage()) { | 157 if (pipeline.ignoresCoverage()) { |
158 header->fIgnoresCoverage = 1; | 158 header->fIgnoresCoverage = 1; |
159 } else { | 159 } else { |
160 header->fIgnoresCoverage = 0; | 160 header->fIgnoresCoverage = 0; |
161 } | 161 } |
162 | 162 |
| 163 if (pipeline.usesDistanceVectorField()) { |
| 164 header->fUsesDistanceVectorField = 1; |
| 165 } else { |
| 166 header->fUsesDistanceVectorField = 0; |
| 167 } |
| 168 |
163 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); | 169 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); | 170 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); |
165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); | 171 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); |
166 vkDesc->finalize(); | 172 vkDesc->finalize(); |
167 return true; | 173 return true; |
168 } | 174 } |
OLD | NEW |