OLD | NEW |
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 13 matching lines...) Expand all Loading... |
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 GrVkPipelineState; | 29 class GrVkPipelineState; |
30 class GrVkRenderPass; | 30 class GrVkRenderPass; |
31 class GrVkTexture; | 31 class GrVkTexture; |
32 struct GrVkInterface; | 32 struct GrVkInterface; |
33 | 33 |
34 #ifdef SK_DEBUG | |
35 #define ENABLE_VK_LAYERS | |
36 #endif | |
37 | |
38 class GrVkGpu : public GrGpu { | 34 class GrVkGpu : public GrGpu { |
39 public: | 35 public: |
40 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions
& options, | 36 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions
& options, |
41 GrContext* context); | 37 GrContext* context); |
42 | 38 |
43 ~GrVkGpu() override; | 39 ~GrVkGpu() override; |
44 | 40 |
45 const GrVkInterface* vkInterface() const { return fBackendContext->fInterfac
e; } | 41 const GrVkInterface* vkInterface() const { return fBackendContext->fInterfac
e; } |
46 const GrVkCaps& vkCaps() const { return *fVkCaps; } | 42 const GrVkCaps& vkCaps() const { return *fVkCaps; } |
47 | 43 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 231 |
236 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 232 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
237 // since there is significant overhead to the first compile of any compiler. | 233 // since there is significant overhead to the first compile of any compiler. |
238 shaderc_compiler_t fCompiler; | 234 shaderc_compiler_t fCompiler; |
239 | 235 |
240 | 236 |
241 typedef GrGpu INHERITED; | 237 typedef GrGpu INHERITED; |
242 }; | 238 }; |
243 | 239 |
244 #endif | 240 #endif |
OLD | NEW |