| OLD | NEW |
| 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 GrVkResourceProvider_DEFINED | 8 #ifndef GrVkResourceProvider_DEFINED |
| 9 #define GrVkResourceProvider_DEFINED | 9 #define GrVkResourceProvider_DEFINED |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // The refcount is incremented and a pointer returned. | 97 // The refcount is incremented and a pointer returned. |
| 98 GrVkSampler* findOrCreateCompatibleSampler(const GrTextureParams&, uint32_t
mipLevels); | 98 GrVkSampler* findOrCreateCompatibleSampler(const GrTextureParams&, uint32_t
mipLevels); |
| 99 | 99 |
| 100 sk_sp<GrVkPipelineState> findOrCreateCompatiblePipelineState(const GrPipelin
e&, | 100 sk_sp<GrVkPipelineState> findOrCreateCompatiblePipelineState(const GrPipelin
e&, |
| 101 const GrPrimiti
veProcessor&, | 101 const GrPrimiti
veProcessor&, |
| 102 GrPrimitiveType
, | 102 GrPrimitiveType
, |
| 103 const GrVkRende
rPass& renderPass); | 103 const GrVkRende
rPass& renderPass); |
| 104 | 104 |
| 105 void getSamplerDescriptorSetHandle(const GrVkUniformHandler&, | 105 void getSamplerDescriptorSetHandle(const GrVkUniformHandler&, |
| 106 GrVkDescriptorSetManager::Handle* handle)
; | 106 GrVkDescriptorSetManager::Handle* handle)
; |
| 107 void getSamplerDescriptorSetHandle(const SkTArray<uint32_t>& visibilities, |
| 108 GrVkDescriptorSetManager::Handle* handle)
; |
| 107 | 109 |
| 108 // Returns the compatible VkDescriptorSetLayout to use for uniform buffers.
The caller does not | 110 // Returns the compatible VkDescriptorSetLayout to use for uniform buffers.
The caller does not |
| 109 // own the VkDescriptorSetLayout and thus should not delete it. This functio
n should be used | 111 // own the VkDescriptorSetLayout and thus should not delete it. This functio
n should be used |
| 110 // when the caller needs the layout to create a VkPipelineLayout. | 112 // when the caller needs the layout to create a VkPipelineLayout. |
| 111 VkDescriptorSetLayout getUniformDSLayout() const; | 113 VkDescriptorSetLayout getUniformDSLayout() const; |
| 112 | 114 |
| 113 // Returns the compatible VkDescriptorSetLayout to use for a specific sample
r handle. The caller | 115 // Returns the compatible VkDescriptorSetLayout to use for a specific sample
r handle. The caller |
| 114 // does not own the VkDescriptorSetLayout and thus should not delete it. Thi
s function should be | 116 // does not own the VkDescriptorSetLayout and thus should not delete it. Thi
s function should be |
| 115 // used when the caller needs the layout to create a VkPipelineLayout. | 117 // used when the caller needs the layout to create a VkPipelineLayout. |
| 116 VkDescriptorSetLayout getSamplerDSLayout(const GrVkDescriptorSetManager::Han
dle&) const; | 118 VkDescriptorSetLayout getSamplerDSLayout(const GrVkDescriptorSetManager::Han
dle&) const; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 244 |
| 243 // Cache of GrVkPipelineStates | 245 // Cache of GrVkPipelineStates |
| 244 PipelineStateCache* fPipelineStateCache; | 246 PipelineStateCache* fPipelineStateCache; |
| 245 | 247 |
| 246 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; | 248 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; |
| 247 | 249 |
| 248 GrVkDescriptorSetManager::Handle fUniformDSHandle; | 250 GrVkDescriptorSetManager::Handle fUniformDSHandle; |
| 249 }; | 251 }; |
| 250 | 252 |
| 251 #endif | 253 #endif |
| OLD | NEW |