Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/gpu/vk/GrVkPipelineState.h

Issue 1927943002: Unify DescriptorPools for vulkan uniform descriptor sets (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use enum Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkDescriptorPool.h ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkDescriptorPool.h ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698