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

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

Issue 1974983002: Refactor Vulkan image, texture, RTs so that create and getter handles match. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixLayerVersion
Patch Set: clean up 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
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // Meta data so we know which descriptor sets we are using and need to bind. 258 // Meta data so we know which descriptor sets we are using and need to bind.
259 int fStartDS; 259 int fStartDS;
260 int fDSCount; 260 int fDSCount;
261 261
262 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer; 262 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer;
263 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer; 263 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer;
264 264
265 // GrVkResources used for sampling textures 265 // GrVkResources used for sampling textures
266 SkTDArray<GrVkSampler*> fSamplers; 266 SkTDArray<GrVkSampler*> fSamplers;
267 SkTDArray<const GrVkImageView*> fTextureViews; 267 SkTDArray<const GrVkImageView*> fTextureViews;
268 SkTDArray<const GrVkImage::Resource*> fTextures; 268 SkTDArray<const GrVkResource*> fTextures;
269 269
270 // Tracks the current render target uniforms stored in the vertex buffer. 270 // Tracks the current render target uniforms stored in the vertex buffer.
271 RenderTargetState fRenderTargetState; 271 RenderTargetState fRenderTargetState;
272 BuiltinUniformHandles fBuiltinUniformHandles; 272 BuiltinUniformHandles fBuiltinUniformHandles;
273 273
274 // Processors in the GrVkPipelineState 274 // Processors in the GrVkPipelineState
275 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; 275 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor;
276 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; 276 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor;
277 GrGLSLFragProcs fFragmentProcessors; 277 GrGLSLFragProcs fFragmentProcessors;
278 278
279 Desc fDesc; 279 Desc fDesc;
280 280
281 GrVkPipelineStateDataManager fDataManager; 281 GrVkPipelineStateDataManager fDataManager;
282 282
283 DescriptorPoolManager fSamplerPoolManager; 283 DescriptorPoolManager fSamplerPoolManager;
284 const GrVkDescriptorPool* fCurrentUniformDescPool; 284 const GrVkDescriptorPool* fCurrentUniformDescPool;
285 285
286 int fNumSamplers; 286 int fNumSamplers;
287 287
288 friend class GrVkPipelineStateBuilder; 288 friend class GrVkPipelineStateBuilder;
289 }; 289 };
290 290
291 #endif 291 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698