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

Unified Diff: src/gpu/vk/GrVkPipelineState.h

Issue 2163673002: Setup system in Vulkan to reuse VkDescriptorSet allocations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkImage.h ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkPipelineState.h
diff --git a/src/gpu/vk/GrVkPipelineState.h b/src/gpu/vk/GrVkPipelineState.h
index d4cc19a9a330d7e7477e7fd7dad67ae7469dca8c..8988aa340b6974fd3c22d68016bfde7d5cb4387e 100644
--- a/src/gpu/vk/GrVkPipelineState.h
+++ b/src/gpu/vk/GrVkPipelineState.h
@@ -20,6 +20,7 @@
class GrPipeline;
class GrVkCommandBuffer;
class GrVkDescriptorPool;
+class GrVkDescriptorSet;
class GrVkGpu;
class GrVkImageView;
class GrVkPipeline;
@@ -256,6 +257,10 @@ private:
// GrVkPipelineState since we update the descriptor sets and bind them at separate times;
VkDescriptorSet fDescriptorSets[2];
+ // Once we move samplers over to use the resource provider for descriptor sets we will not need
+ // the above array and instead just use GrVkDescriptorSet like the uniform one here.
+ const GrVkDescriptorSet* fUniformDescriptorSet;
+
// Meta data so we know which descriptor sets we are using and need to bind.
int fStartDS;
int fDSCount;
@@ -282,7 +287,6 @@ private:
GrVkPipelineStateDataManager fDataManager;
DescriptorPoolManager fSamplerPoolManager;
- const GrVkDescriptorPool* fCurrentUniformDescPool;
int fNumSamplers;
« no previous file with comments | « src/gpu/vk/GrVkImage.h ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698