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/GrVkGpu.h

Issue 1785813002: Enable extension support and debug layer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes for line endings and versioning 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
« no previous file with comments | « src/gpu/vk/GrVkExtensions.cpp ('k') | src/gpu/vk/GrVkGpu.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 2015 Google Inc. 2 * Copyright 2015 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 GrVkGpu_DEFINED 8 #ifndef GrVkGpu_DEFINED
9 #define GrVkGpu_DEFINED 9 #define GrVkGpu_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 class GrPipeline; 23 class GrPipeline;
24 class GrNonInstancedMesh; 24 class GrNonInstancedMesh;
25 25
26 class GrVkBufferImpl; 26 class GrVkBufferImpl;
27 class GrVkCommandBuffer; 27 class GrVkCommandBuffer;
28 class GrVkPipeline; 28 class GrVkPipeline;
29 class GrVkRenderPass; 29 class GrVkRenderPass;
30 class GrVkTexture; 30 class GrVkTexture;
31 struct GrVkInterface; 31 struct GrVkInterface;
32 32
33 #ifdef SK_DEBUG
34 #define ENABLE_VK_LAYERS
35 #endif
36
33 class GrVkGpu : public GrGpu { 37 class GrVkGpu : public GrGpu {
34 public: 38 public:
35 // Currently passing in the inst so that we can properly delete it when we a re done. 39 // Currently passing in the inst so that we can properly delete it when we a re done.
36 // Normally this would be done by the client. 40 // Normally this would be done by the client.
37 GrVkGpu(GrContext* context, const GrContextOptions& options, 41 GrVkGpu(GrContext* context, const GrContextOptions& options,
38 VkPhysicalDevice physDev, VkDevice device, VkQueue queue, VkCommandP ool cmdPool, 42 VkPhysicalDevice physDev, VkDevice device, VkQueue queue, VkCommandP ool cmdPool,
39 VkInstance inst); 43 VkInstance inst);
40 ~GrVkGpu() override; 44 ~GrVkGpu() override;
41 45
42 const GrVkInterface* vkInterface() const { return fInterface.get(); } 46 const GrVkInterface* vkInterface() const { return fInterface.get(); }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 215
212 SkAutoTUnref<const GrVkInterface> fInterface; 216 SkAutoTUnref<const GrVkInterface> fInterface;
213 SkAutoTUnref<GrVkCaps> fVkCaps; 217 SkAutoTUnref<GrVkCaps> fVkCaps;
214 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; 218 VkPhysicalDeviceMemoryProperties fPhysDevMemProps;
215 VkDevice fDevice; 219 VkDevice fDevice;
216 VkQueue fQueue; // for now, one queue 220 VkQueue fQueue; // for now, one queue
217 VkCommandPool fCmdPool; 221 VkCommandPool fCmdPool;
218 GrVkCommandBuffer* fCurrentCmdBuffer; 222 GrVkCommandBuffer* fCurrentCmdBuffer;
219 GrVkResourceProvider fResourceProvider; 223 GrVkResourceProvider fResourceProvider;
220 224
225 #ifdef ENABLE_VK_LAYERS
226 // For reporting validation layer errors
227 VkDebugReportCallbackEXT fCallback;
228 #endif
229
221 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 230 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
222 // since there is significant overhead to the first compile of any compiler. 231 // since there is significant overhead to the first compile of any compiler.
223 shaderc_compiler_t fCompiler; 232 shaderc_compiler_t fCompiler;
224 233
225 // This is only for our current testing and building. The client should be h olding on to the 234 // This is only for our current testing and building. The client should be h olding on to the
226 // VkInstance. 235 // VkInstance.
227 VkInstance fVkInstance; 236 VkInstance fVkInstance;
228 237
229 typedef GrGpu INHERITED; 238 typedef GrGpu INHERITED;
230 }; 239 };
231 240
232 #endif 241 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkExtensions.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698