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

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

Issue 1835813003: Use NV glsl shader compiler for Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@cacheHash
Patch Set: Created 4 years, 8 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/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkPipelineStateBuilder.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 #include "GrVkGpu.h" 8 #include "GrVkGpu.h"
9 9
10 #include "GrContextOptions.h" 10 #include "GrContextOptions.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Register the callback 105 // Register the callback
106 GR_VK_CALL_ERRCHECK(this->vkInterface(), CreateDebugReportCallbackEXT(fV kInstance, 106 GR_VK_CALL_ERRCHECK(this->vkInterface(), CreateDebugReportCallbackEXT(fV kInstance,
107 &callbackCreateInfo, nullptr, &fCallback)); 107 &callbackCreateInfo, nullptr, &fCallback));
108 } 108 }
109 #endif 109 #endif
110 110
111 fCompiler = shaderc_compiler_initialize(); 111 fCompiler = shaderc_compiler_initialize();
112 112
113 fVkCaps.reset(new GrVkCaps(options, this->vkInterface(), backendCtx->fPhysic alDevice, 113 fVkCaps.reset(new GrVkCaps(options, this->vkInterface(), backendCtx->fPhysic alDevice,
114 backendCtx->fFeatures)); 114 backendCtx->fFeatures, backendCtx->fExtensions));
115 fCaps.reset(SkRef(fVkCaps.get())); 115 fCaps.reset(SkRef(fVkCaps.get()));
116 116
117 VK_CALL(GetPhysicalDeviceMemoryProperties(backendCtx->fPhysicalDevice, &fPhy sDevMemProps)); 117 VK_CALL(GetPhysicalDeviceMemoryProperties(backendCtx->fPhysicalDevice, &fPhy sDevMemProps));
118 118
119 const VkCommandPoolCreateInfo cmdPoolInfo = { 119 const VkCommandPoolCreateInfo cmdPoolInfo = {
120 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, // sType 120 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, // sType
121 nullptr, // pNext 121 nullptr, // pNext
122 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, // CmdPoolCreateFlags 122 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, // CmdPoolCreateFlags
123 backendCtx->fQueueFamilyIndex, // queueFamilyIndex 123 backendCtx->fQueueFamilyIndex, // queueFamilyIndex
124 }; 124 };
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 int set_a_break_pt_here = 9; 1431 int set_a_break_pt_here = 9;
1432 aglSwapBuffers(aglGetCurrentContext()); 1432 aglSwapBuffers(aglGetCurrentContext());
1433 #elif defined(SK_BUILD_FOR_WIN32) 1433 #elif defined(SK_BUILD_FOR_WIN32)
1434 SwapBuf(); 1434 SwapBuf();
1435 int set_a_break_pt_here = 9; 1435 int set_a_break_pt_here = 9;
1436 SwapBuf(); 1436 SwapBuf();
1437 #endif 1437 #endif
1438 #endif 1438 #endif
1439 } 1439 }
1440 1440
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkPipelineStateBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698