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

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

Issue 2019723002: Subclass GrVkCommandBuffer into Primary and Secondary CommandBuffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@renderPass2
Patch Set: Add executeCommands impl Created 4 years, 6 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/GrVkCommandBuffer.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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698