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

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: nits 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/GrVkImage.cpp ('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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Meta data so we know which descriptor sets we are using and need to bind. 259 // Meta data so we know which descriptor sets we are using and need to bind.
260 int fStartDS; 260 int fStartDS;
261 int fDSCount; 261 int fDSCount;
262 262
263 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer; 263 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer;
264 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer; 264 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer;
265 265
266 // GrVkResources used for sampling textures 266 // GrVkResources used for sampling textures
267 SkTDArray<GrVkSampler*> fSamplers; 267 SkTDArray<GrVkSampler*> fSamplers;
268 SkTDArray<const GrVkImageView*> fTextureViews; 268 SkTDArray<const GrVkImageView*> fTextureViews;
269 SkTDArray<const GrVkImage::Resource*> fTextures; 269 SkTDArray<const GrVkResource*> fTextures;
270 270
271 // Tracks the current render target uniforms stored in the vertex buffer. 271 // Tracks the current render target uniforms stored in the vertex buffer.
272 RenderTargetState fRenderTargetState; 272 RenderTargetState fRenderTargetState;
273 BuiltinUniformHandles fBuiltinUniformHandles; 273 BuiltinUniformHandles fBuiltinUniformHandles;
274 274
275 // Processors in the GrVkPipelineState 275 // Processors in the GrVkPipelineState
276 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; 276 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor;
277 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; 277 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor;
278 GrGLSLFragProcs fFragmentProcessors; 278 GrGLSLFragProcs fFragmentProcessors;
279 279
280 Desc fDesc; 280 Desc fDesc;
281 281
282 GrVkPipelineStateDataManager fDataManager; 282 GrVkPipelineStateDataManager fDataManager;
283 283
284 DescriptorPoolManager fSamplerPoolManager; 284 DescriptorPoolManager fSamplerPoolManager;
285 const GrVkDescriptorPool* fCurrentUniformDescPool; 285 const GrVkDescriptorPool* fCurrentUniformDescPool;
286 286
287 int fNumSamplers; 287 int fNumSamplers;
288 288
289 friend class GrVkPipelineStateBuilder; 289 friend class GrVkPipelineStateBuilder;
290 }; 290 };
291 291
292 #endif 292 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkImage.cpp ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698