Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrVkResourceProvider_DEFINED |
| 9 | #define GrVkResourceProvider_DEFINED |
| 10 | |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 11 | #include "GrResourceHandle.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 12 | #include "GrVkDescriptorPool.h" |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 13 | #include "GrVkDescriptorSetManager.h" |
Brian Salomon | 1471df9 | 2018-06-08 10:49:00 -0400 | [diff] [blame] | 14 | #include "GrVkPipelineStateBuilder.h" |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 15 | #include "GrVkRenderPass.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 16 | #include "GrVkResource.h" |
| 17 | #include "GrVkUtil.h" |
Ethan Nicholas | 87f340e | 2017-01-03 14:32:01 -0500 | [diff] [blame] | 18 | #include "SkLRUCache.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 19 | #include "SkTArray.h" |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 20 | #include "SkTDynamicHash.h" |
egdaniel | af13277 | 2016-03-28 12:39:29 -0700 | [diff] [blame] | 21 | #include "SkTInternalLList.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 22 | |
jvanverth | e50f3e7 | 2016-03-28 07:03:06 -0700 | [diff] [blame] | 23 | #include "vk/GrVkDefines.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 24 | |
| 25 | class GrPipeline; |
| 26 | class GrPrimitiveProcessor; |
Brian Salomon | 2bbdcc4 | 2017-09-07 12:36:34 -0400 | [diff] [blame] | 27 | class GrSamplerState; |
egdaniel | bc9b296 | 2016-09-27 08:00:53 -0700 | [diff] [blame] | 28 | class GrVkCopyPipeline; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 29 | class GrVkGpu; |
| 30 | class GrVkPipeline; |
Brian Salomon | 1471df9 | 2018-06-08 10:49:00 -0400 | [diff] [blame] | 31 | class GrVkPipelineState; |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 32 | class GrVkPrimaryCommandBuffer; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 33 | class GrVkRenderTarget; |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 34 | class GrVkSampler; |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 35 | class GrVkSecondaryCommandBuffer; |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 36 | class GrVkUniformHandler; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 37 | |
| 38 | class GrVkResourceProvider { |
| 39 | public: |
| 40 | GrVkResourceProvider(GrVkGpu* gpu); |
| 41 | ~GrVkResourceProvider(); |
| 42 | |
jvanverth | 03509ea | 2016-03-02 13:19:47 -0800 | [diff] [blame] | 43 | // Set up any initial vk objects |
| 44 | void init(); |
| 45 | |
Brian Salomon | ff168d9 | 2018-06-23 15:17:27 -0400 | [diff] [blame^] | 46 | GrVkPipeline* createPipeline(const GrPrimitiveProcessor& primProc, |
| 47 | const GrPipeline& pipeline, |
csmartdalton | c633abb | 2016-11-01 08:55:55 -0700 | [diff] [blame] | 48 | const GrStencilSettings& stencil, |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 49 | VkPipelineShaderStageCreateInfo* shaderStageInfo, |
| 50 | int shaderStageCount, |
| 51 | GrPrimitiveType primitiveType, |
| 52 | const GrVkRenderPass& renderPass, |
| 53 | VkPipelineLayout layout); |
| 54 | |
egdaniel | bc9b296 | 2016-09-27 08:00:53 -0700 | [diff] [blame] | 55 | GrVkCopyPipeline* findOrCreateCopyPipeline(const GrVkRenderTarget* dst, |
| 56 | VkPipelineShaderStageCreateInfo*, |
| 57 | VkPipelineLayout); |
| 58 | |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 59 | GR_DEFINE_RESOURCE_HANDLE_CLASS(CompatibleRPHandle); |
| 60 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 61 | // Finds or creates a simple render pass that matches the target, increments the refcount, |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 62 | // and returns. The caller can optionally pass in a pointer to a CompatibleRPHandle. If this is |
| 63 | // non null it will be set to a handle that can be used in the furutre to quickly return a |
| 64 | // compatible GrVkRenderPasses without the need inspecting a GrVkRenderTarget. |
| 65 | const GrVkRenderPass* findCompatibleRenderPass(const GrVkRenderTarget& target, |
| 66 | CompatibleRPHandle* compatibleHandle = nullptr); |
| 67 | // The CompatibleRPHandle must be a valid handle previously set by a call to |
| 68 | // findCompatibleRenderPass(GrVkRenderTarget&, CompatibleRPHandle*). |
| 69 | const GrVkRenderPass* findCompatibleRenderPass(const CompatibleRPHandle& compatibleHandle); |
| 70 | |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 71 | // Finds or creates a render pass that matches the target and LoadStoreOps, increments the |
| 72 | // refcount, and returns. The caller can optionally pass in a pointer to a CompatibleRPHandle. |
| 73 | // If this is non null it will be set to a handle that can be used in the furutre to quickly |
| 74 | // return a GrVkRenderPasses without the need inspecting a GrVkRenderTarget. |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 75 | const GrVkRenderPass* findRenderPass(const GrVkRenderTarget& target, |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 76 | const GrVkRenderPass::LoadStoreOps& colorOps, |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 77 | const GrVkRenderPass::LoadStoreOps& stencilOps, |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 78 | CompatibleRPHandle* compatibleHandle = nullptr); |
| 79 | |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 80 | // The CompatibleRPHandle must be a valid handle previously set by a call to findRenderPass or |
| 81 | // findCompatibleRenderPass. |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 82 | const GrVkRenderPass* findRenderPass(const CompatibleRPHandle& compatibleHandle, |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 83 | const GrVkRenderPass::LoadStoreOps& colorOps, |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 84 | const GrVkRenderPass::LoadStoreOps& stencilOps); |
| 85 | |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 86 | GrVkPrimaryCommandBuffer* findOrCreatePrimaryCommandBuffer(); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 87 | void checkCommandBuffers(); |
| 88 | |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 89 | GrVkSecondaryCommandBuffer* findOrCreateSecondaryCommandBuffer(); |
| 90 | void recycleSecondaryCommandBuffer(GrVkSecondaryCommandBuffer* cb); |
| 91 | |
egdaniel | c2dc1b2 | 2016-03-18 13:18:23 -0700 | [diff] [blame] | 92 | // Finds or creates a compatible GrVkDescriptorPool for the requested type and count. |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 93 | // The refcount is incremented and a pointer returned. |
| 94 | // TODO: Currently this will just create a descriptor pool without holding onto a ref itself |
| 95 | // so we currently do not reuse them. Rquires knowing if another draw is currently using |
| 96 | // the GrVkDescriptorPool, the ability to reset pools, and the ability to purge pools out |
| 97 | // of our cache of GrVkDescriptorPools. |
egdaniel | c2dc1b2 | 2016-03-18 13:18:23 -0700 | [diff] [blame] | 98 | GrVkDescriptorPool* findOrCreateCompatibleDescriptorPool(VkDescriptorType type, uint32_t count); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 99 | |
Brian Salomon | 2bbdcc4 | 2017-09-07 12:36:34 -0400 | [diff] [blame] | 100 | // Finds or creates a compatible GrVkSampler based on the GrSamplerState. |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 101 | // The refcount is incremented and a pointer returned. |
Brian Salomon | 2bbdcc4 | 2017-09-07 12:36:34 -0400 | [diff] [blame] | 102 | GrVkSampler* findOrCreateCompatibleSampler(const GrSamplerState&, uint32_t maxMipLevel); |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 103 | |
Greg Daniel | 09eeefb | 2017-10-16 15:15:02 -0400 | [diff] [blame] | 104 | GrVkPipelineState* findOrCreateCompatiblePipelineState(const GrPipeline&, |
| 105 | const GrPrimitiveProcessor&, |
| 106 | GrPrimitiveType, |
| 107 | const GrVkRenderPass& renderPass); |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 108 | |
Greg Daniel | a754378 | 2017-05-02 14:01:43 -0400 | [diff] [blame] | 109 | void getSamplerDescriptorSetHandle(VkDescriptorType type, |
| 110 | const GrVkUniformHandler&, |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 111 | GrVkDescriptorSetManager::Handle* handle); |
Greg Daniel | a754378 | 2017-05-02 14:01:43 -0400 | [diff] [blame] | 112 | void getSamplerDescriptorSetHandle(VkDescriptorType type, |
| 113 | const SkTArray<uint32_t>& visibilities, |
egdaniel | 4d866df | 2016-08-25 13:52:00 -0700 | [diff] [blame] | 114 | GrVkDescriptorSetManager::Handle* handle); |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 115 | |
| 116 | // Returns the compatible VkDescriptorSetLayout to use for uniform buffers. The caller does not |
| 117 | // own the VkDescriptorSetLayout and thus should not delete it. This function should be used |
| 118 | // when the caller needs the layout to create a VkPipelineLayout. |
| 119 | VkDescriptorSetLayout getUniformDSLayout() const; |
| 120 | |
| 121 | // Returns the compatible VkDescriptorSetLayout to use for a specific sampler handle. The caller |
| 122 | // does not own the VkDescriptorSetLayout and thus should not delete it. This function should be |
| 123 | // used when the caller needs the layout to create a VkPipelineLayout. |
| 124 | VkDescriptorSetLayout getSamplerDSLayout(const GrVkDescriptorSetManager::Handle&) const; |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 125 | |
| 126 | // Returns a GrVkDescriptorSet that can be used for uniform buffers. The GrVkDescriptorSet |
| 127 | // is already reffed for the caller. |
| 128 | const GrVkDescriptorSet* getUniformDescriptorSet(); |
| 129 | |
| 130 | // Returns a GrVkDescriptorSet that can be used for sampler descriptors that are compatible with |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 131 | // the GrVkDescriptorSetManager::Handle passed in. The GrVkDescriptorSet is already reffed for |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 132 | // the caller. |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 133 | const GrVkDescriptorSet* getSamplerDescriptorSet(const GrVkDescriptorSetManager::Handle&); |
egdaniel | 778555c | 2016-05-02 06:50:36 -0700 | [diff] [blame] | 134 | |
egdaniel | 778555c | 2016-05-02 06:50:36 -0700 | [diff] [blame] | 135 | |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 136 | // Signals that the descriptor set passed it, which is compatible with the passed in handle, |
| 137 | // can be reused by the next allocation request. |
| 138 | void recycleDescriptorSet(const GrVkDescriptorSet* descSet, |
| 139 | const GrVkDescriptorSetManager::Handle&); |
| 140 | |
jvanverth | 4c6e47a | 2016-07-22 10:34:52 -0700 | [diff] [blame] | 141 | // Creates or finds free uniform buffer resources of size GrVkUniformBuffer::kStandardSize. |
| 142 | // Anything larger will need to be created and released by the client. |
| 143 | const GrVkResource* findOrCreateStandardUniformBufferResource(); |
| 144 | |
| 145 | // Signals that the resource passed to it (which should be a uniform buffer resource) |
| 146 | // can be reused by the next uniform buffer resource request. |
| 147 | void recycleStandardUniformBufferResource(const GrVkResource*); |
| 148 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 149 | // Destroy any cached resources. To be called before destroying the VkDevice. |
| 150 | // The assumption is that all queues are idle and all command buffers are finished. |
| 151 | // For resource tracing to work properly, this should be called after unrefing all other |
| 152 | // resource usages. |
Jim Van Verth | 09557d7 | 2016-11-07 11:10:21 -0500 | [diff] [blame] | 153 | // If deviceLost is true, then resources will not be checked to see if they've finished |
| 154 | // before deleting (see section 4.2.4 of the Vulkan spec). |
| 155 | void destroyResources(bool deviceLost); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 156 | |
| 157 | // Abandon any cached resources. To be used when the context/VkDevice is lost. |
| 158 | // For resource tracing to work properly, this should be called after unrefing all other |
| 159 | // resource usages. |
| 160 | void abandonResources(); |
| 161 | |
| 162 | private: |
djsollen | efe46d2 | 2016-04-29 06:41:35 -0700 | [diff] [blame] | 163 | #ifdef SK_DEBUG |
egdaniel | af13277 | 2016-03-28 12:39:29 -0700 | [diff] [blame] | 164 | #define GR_PIPELINE_STATE_CACHE_STATS |
| 165 | #endif |
| 166 | |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 167 | class PipelineStateCache : public ::SkNoncopyable { |
| 168 | public: |
| 169 | PipelineStateCache(GrVkGpu* gpu); |
| 170 | ~PipelineStateCache(); |
| 171 | |
| 172 | void abandon(); |
| 173 | void release(); |
Brian Salomon | ff168d9 | 2018-06-23 15:17:27 -0400 | [diff] [blame^] | 174 | GrVkPipelineState* refPipelineState(const GrPrimitiveProcessor&, |
| 175 | const GrPipeline&, |
Greg Daniel | 09eeefb | 2017-10-16 15:15:02 -0400 | [diff] [blame] | 176 | GrPrimitiveType, |
| 177 | const GrVkRenderPass& renderPass); |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 178 | |
| 179 | private: |
| 180 | enum { |
| 181 | // We may actually have kMaxEntries+1 PipelineStates in context because we create a new |
| 182 | // PipelineState before evicting from the cache. |
| 183 | kMaxEntries = 128, |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | struct Entry; |
| 187 | |
Ethan Nicholas | 87f340e | 2017-01-03 14:32:01 -0500 | [diff] [blame] | 188 | struct DescHash { |
| 189 | uint32_t operator()(const GrProgramDesc& desc) const { |
| 190 | return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); |
| 191 | } |
| 192 | }; |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 193 | |
Brian Salomon | 1471df9 | 2018-06-08 10:49:00 -0400 | [diff] [blame] | 194 | SkLRUCache<const GrVkPipelineStateBuilder::Desc, std::unique_ptr<Entry>, DescHash> fMap; |
egdaniel | af13277 | 2016-03-28 12:39:29 -0700 | [diff] [blame] | 195 | |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 196 | GrVkGpu* fGpu; |
egdaniel | af13277 | 2016-03-28 12:39:29 -0700 | [diff] [blame] | 197 | |
| 198 | #ifdef GR_PIPELINE_STATE_CACHE_STATS |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 199 | int fTotalRequests; |
| 200 | int fCacheMisses; |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 201 | #endif |
| 202 | }; |
| 203 | |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 204 | class CompatibleRenderPassSet { |
| 205 | public: |
| 206 | // This will always construct the basic load store render pass (all attachments load and |
| 207 | // store their data) so that there is at least one compatible VkRenderPass that can be used |
| 208 | // with this set. |
| 209 | CompatibleRenderPassSet(const GrVkGpu* gpu, const GrVkRenderTarget& target); |
| 210 | |
| 211 | bool isCompatible(const GrVkRenderTarget& target) const; |
| 212 | |
| 213 | GrVkRenderPass* getCompatibleRenderPass() const { |
| 214 | // The first GrVkRenderpass should always exist since we create the basic load store |
| 215 | // render pass on create |
| 216 | SkASSERT(fRenderPasses[0]); |
| 217 | return fRenderPasses[0]; |
| 218 | } |
| 219 | |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 220 | GrVkRenderPass* getRenderPass(const GrVkGpu* gpu, |
| 221 | const GrVkRenderPass::LoadStoreOps& colorOps, |
egdaniel | 2feb093 | 2016-06-08 06:48:09 -0700 | [diff] [blame] | 222 | const GrVkRenderPass::LoadStoreOps& stencilOps); |
| 223 | |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 224 | void releaseResources(const GrVkGpu* gpu); |
| 225 | void abandonResources(); |
| 226 | |
| 227 | private: |
| 228 | SkSTArray<4, GrVkRenderPass*> fRenderPasses; |
| 229 | int fLastReturnedIndex; |
| 230 | }; |
| 231 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 232 | GrVkGpu* fGpu; |
| 233 | |
jvanverth | 03509ea | 2016-03-02 13:19:47 -0800 | [diff] [blame] | 234 | // Central cache for creating pipelines |
| 235 | VkPipelineCache fPipelineCache; |
| 236 | |
egdaniel | bc9b296 | 2016-09-27 08:00:53 -0700 | [diff] [blame] | 237 | // Cache of previously created copy pipelines |
| 238 | SkTArray<GrVkCopyPipeline*> fCopyPipelines; |
| 239 | |
egdaniel | d62e28b | 2016-06-07 08:43:30 -0700 | [diff] [blame] | 240 | SkSTArray<4, CompatibleRenderPassSet> fRenderPassArray; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 241 | |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 242 | // Array of PrimaryCommandBuffers that are currently in flight |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 243 | SkSTArray<4, GrVkPrimaryCommandBuffer*, true> fActiveCommandBuffers; |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 244 | // Array of available primary command buffers that are not in flight |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 245 | SkSTArray<4, GrVkPrimaryCommandBuffer*, true> fAvailableCommandBuffers; |
jvanverth | 7ec9241 | 2016-07-06 09:24:57 -0700 | [diff] [blame] | 246 | |
| 247 | // Array of available secondary command buffers |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 248 | SkSTArray<16, GrVkSecondaryCommandBuffer*, true> fAvailableSecondaryCommandBuffers; |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 249 | |
jvanverth | 4c6e47a | 2016-07-22 10:34:52 -0700 | [diff] [blame] | 250 | // Array of available uniform buffer resources |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 251 | SkSTArray<16, const GrVkResource*, true> fAvailableUniformBufferResources; |
jvanverth | 4c6e47a | 2016-07-22 10:34:52 -0700 | [diff] [blame] | 252 | |
egdaniel | 8b6394c | 2016-03-04 07:35:10 -0800 | [diff] [blame] | 253 | // Stores GrVkSampler objects that we've already created so we can reuse them across multiple |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 254 | // GrVkPipelineStates |
jvanverth | 6234006 | 2016-04-26 08:01:44 -0700 | [diff] [blame] | 255 | SkTDynamicHash<GrVkSampler, uint16_t> fSamplers; |
egdaniel | 22281c1 | 2016-03-23 13:49:40 -0700 | [diff] [blame] | 256 | |
| 257 | // Cache of GrVkPipelineStates |
| 258 | PipelineStateCache* fPipelineStateCache; |
egdaniel | 778555c | 2016-05-02 06:50:36 -0700 | [diff] [blame] | 259 | |
Greg Daniel | 18f9602 | 2017-05-04 15:09:03 -0400 | [diff] [blame] | 260 | SkSTArray<4, std::unique_ptr<GrVkDescriptorSetManager>> fDescriptorSetManagers; |
egdaniel | a95220d | 2016-07-21 11:50:37 -0700 | [diff] [blame] | 261 | |
egdaniel | 707bbd6 | 2016-07-26 07:19:47 -0700 | [diff] [blame] | 262 | GrVkDescriptorSetManager::Handle fUniformDSHandle; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | #endif |