| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 VkQueue fQueue; // Must be Graphics queue | 243 VkQueue fQueue; // Must be Graphics queue |
| 244 | 244 |
| 245 // Created by GrVkGpu | 245 // Created by GrVkGpu |
| 246 GrVkResourceProvider fResourceProvider; | 246 GrVkResourceProvider fResourceProvider; |
| 247 VkCommandPool fCmdPool; | 247 VkCommandPool fCmdPool; |
| 248 GrVkPrimaryCommandBuffer* fCurrentCmdBuffer; | 248 GrVkPrimaryCommandBuffer* fCurrentCmdBuffer; |
| 249 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; | 249 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; |
| 250 | 250 |
| 251 SkAutoTDelete<GrVkHeap> fHeaps[kHeapCount]; | 251 SkAutoTDelete<GrVkHeap> fHeaps[kHeapCount]; |
| 252 | 252 |
| 253 #ifdef ENABLE_VK_LAYERS | 253 #ifdef SK_ENABLE_VK_LAYERS |
| 254 // For reporting validation layer errors | 254 // For reporting validation layer errors |
| 255 VkDebugReportCallbackEXT fCallback; | 255 VkDebugReportCallbackEXT fCallback; |
| 256 #endif | 256 #endif |
| 257 | 257 |
| 258 #if USE_SKSL | 258 #if USE_SKSL |
| 259 SkSL::Compiler* fCompiler; | 259 SkSL::Compiler* fCompiler; |
| 260 #else | 260 #else |
| 261 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 261 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 262 // since there is significant overhead to the first compile of any compiler. | 262 // since there is significant overhead to the first compile of any compiler. |
| 263 shaderc_compiler_t fCompiler; | 263 shaderc_compiler_t fCompiler; |
| 264 #endif | 264 #endif |
| 265 | 265 |
| 266 typedef GrGpu INHERITED; | 266 typedef GrGpu INHERITED; |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 #endif | 269 #endif |
| OLD | NEW |