| 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 | 8 |
| 9 #ifndef GrVkPipelineState_DEFINED | 9 #ifndef GrVkPipelineState_DEFINED |
| 10 #define GrVkPipelineState_DEFINED | 10 #define GrVkPipelineState_DEFINED |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 * pipline. This includes stencil settings, blending information, render pas
s format, draw face | 67 * pipline. This includes stencil settings, blending information, render pas
s format, draw face |
| 68 * information, and primitive type. Note that some state is set dynamically
on the pipeline for | 68 * information, and primitive type. Note that some state is set dynamically
on the pipeline for |
| 69 * each draw and thus is not included in this descriptor. This includes the
viewport, scissor, | 69 * each draw and thus is not included in this descriptor. This includes the
viewport, scissor, |
| 70 * and blend constant. | 70 * and blend constant. |
| 71 */ | 71 */ |
| 72 class Desc : public GrProgramDesc { | 72 class Desc : public GrProgramDesc { |
| 73 public: | 73 public: |
| 74 static bool Build(Desc*, | 74 static bool Build(Desc*, |
| 75 const GrPrimitiveProcessor&, | 75 const GrPrimitiveProcessor&, |
| 76 const GrPipeline&, | 76 const GrPipeline&, |
| 77 const GrStencilSettings&, |
| 77 GrPrimitiveType primitiveType, | 78 GrPrimitiveType primitiveType, |
| 78 const GrGLSLCaps&); | 79 const GrGLSLCaps&); |
| 79 private: | 80 private: |
| 80 typedef GrProgramDesc INHERITED; | 81 typedef GrProgramDesc INHERITED; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 const Desc& getDesc() { return fDesc; } | 84 const Desc& getDesc() { return fDesc; } |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 typedef GrVkPipelineStateDataManager::UniformInfoArray UniformInfoArray; | 87 typedef GrVkPipelineStateDataManager::UniformInfoArray UniformInfoArray; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 Desc fDesc; | 228 Desc fDesc; |
| 228 | 229 |
| 229 GrVkPipelineStateDataManager fDataManager; | 230 GrVkPipelineStateDataManager fDataManager; |
| 230 | 231 |
| 231 int fNumSamplers; | 232 int fNumSamplers; |
| 232 | 233 |
| 233 friend class GrVkPipelineStateBuilder; | 234 friend class GrVkPipelineStateBuilder; |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 #endif | 237 #endif |
| OLD | NEW |