| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const Desc& getDesc() { return fDesc; } | 142 const Desc& getDesc() { return fDesc; } |
| 143 | 143 |
| 144 private: | 144 private: |
| 145 typedef GrVkPipelineStateDataManager::UniformInfoArray UniformInfoArray; | 145 typedef GrVkPipelineStateDataManager::UniformInfoArray UniformInfoArray; |
| 146 typedef GrGLSLProgramDataManager::UniformHandle UniformHandle; | 146 typedef GrGLSLProgramDataManager::UniformHandle UniformHandle; |
| 147 | 147 |
| 148 GrVkPipelineState(GrVkGpu* gpu, | 148 GrVkPipelineState(GrVkGpu* gpu, |
| 149 const GrVkPipelineState::Desc&, | 149 const GrVkPipelineState::Desc&, |
| 150 GrVkPipeline* pipeline, | 150 GrVkPipeline* pipeline, |
| 151 VkPipelineLayout layout, | 151 VkPipelineLayout layout, |
| 152 VkDescriptorSetLayout dsLayout[2], | 152 VkDescriptorSetLayout dsSamplerLayout, |
| 153 const BuiltinUniformHandles& builtinUniformHandles, | 153 const BuiltinUniformHandles& builtinUniformHandles, |
| 154 const UniformInfoArray& uniforms, | 154 const UniformInfoArray& uniforms, |
| 155 uint32_t vertexUniformSize, | 155 uint32_t vertexUniformSize, |
| 156 uint32_t fragmentUniformSize, | 156 uint32_t fragmentUniformSize, |
| 157 uint32_t numSamplers, | 157 uint32_t numSamplers, |
| 158 GrGLSLPrimitiveProcessor* geometryProcessor, | 158 GrGLSLPrimitiveProcessor* geometryProcessor, |
| 159 GrGLSLXferProcessor* xferProcessor, | 159 GrGLSLXferProcessor* xferProcessor, |
| 160 const GrGLSLFragProcs& fragmentProcessors); | 160 const GrGLSLFragProcs& fragmentProcessors); |
| 161 | 161 |
| 162 // Each pool will manage one type of descriptor. Thus each descriptor set we
use will all be of | 162 // Each pool will manage one type of descriptor. Thus each descriptor set we
use will all be of |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Processors in the GrVkPipelineState | 273 // Processors in the GrVkPipelineState |
| 274 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; | 274 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; |
| 275 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; | 275 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; |
| 276 GrGLSLFragProcs fFragmentProcessors; | 276 GrGLSLFragProcs fFragmentProcessors; |
| 277 | 277 |
| 278 Desc fDesc; | 278 Desc fDesc; |
| 279 | 279 |
| 280 GrVkPipelineStateDataManager fDataManager; | 280 GrVkPipelineStateDataManager fDataManager; |
| 281 | 281 |
| 282 DescriptorPoolManager fSamplerPoolManager; | 282 DescriptorPoolManager fSamplerPoolManager; |
| 283 DescriptorPoolManager fUniformPoolManager; | 283 const GrVkDescriptorPool* fCurrentUniformDescPool; |
| 284 | 284 |
| 285 int fNumSamplers; | 285 int fNumSamplers; |
| 286 | 286 |
| 287 friend class GrVkPipelineStateBuilder; | 287 friend class GrVkPipelineStateBuilder; |
| 288 }; | 288 }; |
| 289 | 289 |
| 290 #endif | 290 #endif |
| OLD | NEW |