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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 SkAutoTUnref<GrVkCaps> fVkCaps; | 207 SkAutoTUnref<GrVkCaps> fVkCaps; |
208 | 208 |
209 // These Vulkan objects are provided by the client, and also stored in fBack
endContext. | 209 // These Vulkan objects are provided by the client, and also stored in fBack
endContext. |
210 // They're copied here for convenient access. | 210 // They're copied here for convenient access. |
211 VkDevice fDevice; | 211 VkDevice fDevice; |
212 VkQueue fQueue; // Must be Graphics queue | 212 VkQueue fQueue; // Must be Graphics queue |
213 | 213 |
214 // Created by GrVkGpu | 214 // Created by GrVkGpu |
215 GrVkResourceProvider fResourceProvider; | 215 GrVkResourceProvider fResourceProvider; |
216 VkCommandPool fCmdPool; | 216 VkCommandPool fCmdPool; |
217 GrVkCommandBuffer* fCurrentCmdBuffer; | 217 GrVkPrimaryCommandBuffer* fCurrentCmdBuffer; |
218 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; | 218 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; |
219 | 219 |
220 #ifdef ENABLE_VK_LAYERS | 220 #ifdef ENABLE_VK_LAYERS |
221 // For reporting validation layer errors | 221 // For reporting validation layer errors |
222 VkDebugReportCallbackEXT fCallback; | 222 VkDebugReportCallbackEXT fCallback; |
223 #endif | 223 #endif |
224 | 224 |
225 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 225 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
226 // since there is significant overhead to the first compile of any compiler. | 226 // since there is significant overhead to the first compile of any compiler. |
227 shaderc_compiler_t fCompiler; | 227 shaderc_compiler_t fCompiler; |
228 | 228 |
229 | 229 |
230 typedef GrGpu INHERITED; | 230 typedef GrGpu INHERITED; |
231 }; | 231 }; |
232 | 232 |
233 #endif | 233 #endif |
OLD | NEW |