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

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

Issue 1834903003: Add WSI functions to GrVkInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add Android and Xlib Created 4 years, 9 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
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 GrVkDescriptorPool_DEFINED 8 #ifndef GrVkDescriptorPool_DEFINED
9 #define GrVkDescriptorPool_DEFINED 9 #define GrVkDescriptorPool_DEFINED
10 10
11 #include "GrVkResource.h" 11 #include "GrVkResource.h"
12 12
13 #include "vulkan/vulkan.h" 13 #include "vk/GrVkDefines.h"
14 14
15 class GrVkGpu; 15 class GrVkGpu;
16 16
17 /** 17 /**
18 * We require that all descriptor sets are of a single descriptor type. We also use a pool to only 18 * We require that all descriptor sets are of a single descriptor type. We also use a pool to only
19 * make one type of descriptor set. Thus a single VkDescriptorPool will only all ocated space for 19 * make one type of descriptor set. Thus a single VkDescriptorPool will only all ocated space for
20 * for one type of descriptor. 20 * for one type of descriptor.
21 */ 21 */
22 class GrVkDescriptorPool : public GrVkResource { 22 class GrVkDescriptorPool : public GrVkResource {
23 public: 23 public:
(...skipping 11 matching lines...) Expand all
35 void freeGPUData(const GrVkGpu* gpu) const override; 35 void freeGPUData(const GrVkGpu* gpu) const override;
36 36
37 VkDescriptorType fType; 37 VkDescriptorType fType;
38 uint32_t fCount; 38 uint32_t fCount;
39 VkDescriptorPool fDescPool; 39 VkDescriptorPool fDescPool;
40 40
41 typedef GrVkResource INHERITED; 41 typedef GrVkResource INHERITED;
42 }; 42 };
43 43
44 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698