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

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

Issue 1885863004: Refactor how we store and use samplers in Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unneeded assert Created 4 years, 8 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/GrVkPipelineStateBuilder.cpp ('k') | src/gpu/vk/GrVkPipelineStateDataManager.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 #ifndef GrVkPipelineStateDataManager_DEFINED 8 #ifndef GrVkPipelineStateDataManager_DEFINED
9 #define GrVkPipelineStateDataManager_DEFINED 9 #define GrVkPipelineStateDataManager_DEFINED
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool uploadUniformBuffers(const GrVkGpu* gpu, 52 bool uploadUniformBuffers(const GrVkGpu* gpu,
53 GrVkUniformBuffer* vertexBuffer, 53 GrVkUniformBuffer* vertexBuffer,
54 GrVkUniformBuffer* fragmentBuffer) const; 54 GrVkUniformBuffer* fragmentBuffer) const;
55 private: 55 private:
56 struct Uniform { 56 struct Uniform {
57 uint32_t fBinding; 57 uint32_t fBinding;
58 uint32_t fOffset; 58 uint32_t fOffset;
59 SkDEBUGCODE( 59 SkDEBUGCODE(
60 GrSLType fType; 60 GrSLType fType;
61 int fArrayCount; 61 int fArrayCount;
62 uint32_t fSetNumber;
63 ); 62 );
64 }; 63 };
65 64
66 template<int N> inline void setMatrices(UniformHandle, int arrayCount, 65 template<int N> inline void setMatrices(UniformHandle, int arrayCount,
67 const float matrices[]) const; 66 const float matrices[]) const;
68 67
69 void* getBufferPtrAndMarkDirty(const Uniform& uni) const; 68 void* getBufferPtrAndMarkDirty(const Uniform& uni) const;
70 69
71 uint32_t fVertexUniformSize; 70 uint32_t fVertexUniformSize;
72 uint32_t fFragmentUniformSize; 71 uint32_t fFragmentUniformSize;
73 72
74 SkTArray<Uniform, true> fUniforms; 73 SkTArray<Uniform, true> fUniforms;
75 74
76 mutable SkAutoMalloc fVertexUniformData; 75 mutable SkAutoMalloc fVertexUniformData;
77 mutable SkAutoMalloc fFragmentUniformData; 76 mutable SkAutoMalloc fFragmentUniformData;
78 mutable bool fVertexUniformsDirty; 77 mutable bool fVertexUniformsDirty;
79 mutable bool fFragmentUniformsDirty; 78 mutable bool fFragmentUniformsDirty;
80 }; 79 };
81 80
82 #endif 81 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkPipelineStateBuilder.cpp ('k') | src/gpu/vk/GrVkPipelineStateDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698