• Home
  • Raw
  • Download

Lines Matching refs:backendContext

62 sk_sp<GrGpu> GrVkGpu::Make(const GrVkBackendContext& backendContext,  in Make()  argument
64 if (backendContext.fInstance == VK_NULL_HANDLE || in Make()
65 backendContext.fPhysicalDevice == VK_NULL_HANDLE || in Make()
66 backendContext.fDevice == VK_NULL_HANDLE || in Make()
67 backendContext.fQueue == VK_NULL_HANDLE) { in Make()
70 if (!backendContext.fGetProc) { in Make()
76 backendContext.fGetProc("vkEnumerateInstanceVersion", in Make()
91 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in Make()
92 backendContext.fInstance, in Make()
99 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in Make()
102 uint32_t apiVersion = backendContext.fMaxAPIVersion ? backendContext.fMaxAPIVersion in Make()
110 if (backendContext.fVkExtensions) { in Make()
111 interface.reset(new GrVkInterface(backendContext.fGetProc, in Make()
112 backendContext.fInstance, in Make()
113 backendContext.fDevice, in Make()
116 backendContext.fVkExtensions)); in Make()
117 if (!interface->validate(instanceVersion, physDevVersion, backendContext.fVkExtensions)) { in Make()
125 if (backendContext.fExtensions & kKHR_swapchain_GrVkExtensionFlag) { in Make()
127 extensions.init(backendContext.fGetProc, backendContext.fInstance, in Make()
128 backendContext.fPhysicalDevice, 0, nullptr, 1, &swapChainExtName); in Make()
130 interface.reset(new GrVkInterface(backendContext.fGetProc, in Make()
131 backendContext.fInstance, in Make()
132 backendContext.fDevice, in Make()
142 if (backendContext.fDeviceFeatures2) { in Make()
143 caps.reset(new GrVkCaps(options, interface.get(), backendContext.fPhysicalDevice, in Make()
144 *backendContext.fDeviceFeatures2, instanceVersion, physDevVersion, in Make()
145 *backendContext.fVkExtensions, backendContext.fProtectedContext)); in Make()
146 } else if (backendContext.fDeviceFeatures) { in Make()
149 features2.features = *backendContext.fDeviceFeatures; in Make()
150 caps.reset(new GrVkCaps(options, interface.get(), backendContext.fPhysicalDevice, in Make()
152 *backendContext.fVkExtensions, backendContext.fProtectedContext)); in Make()
157 if (backendContext.fFeatures & kGeometryShader_GrVkFeatureFlag) { in Make()
160 if (backendContext.fFeatures & kDualSrcBlend_GrVkFeatureFlag) { in Make()
163 if (backendContext.fFeatures & kSampleRateShading_GrVkFeatureFlag) { in Make()
170 if (backendContext.fExtensions & kKHR_swapchain_GrVkExtensionFlag) { in Make()
172 extensions.init(backendContext.fGetProc, backendContext.fInstance, in Make()
173 backendContext.fPhysicalDevice, 0, nullptr, 1, &swapChainExtName); in Make()
175 caps.reset(new GrVkCaps(options, interface.get(), backendContext.fPhysicalDevice, in Make()
177 backendContext.fProtectedContext)); in Make()
184 sk_sp<GrVkMemoryAllocator> memoryAllocator = backendContext.fMemoryAllocator; in Make()
187 memoryAllocator = GrVkAMDMemoryAllocator::Make(backendContext.fInstance, in Make()
188 backendContext.fPhysicalDevice, in Make()
189 backendContext.fDevice, physDevVersion, in Make()
190 backendContext.fVkExtensions, interface, in Make()
198 sk_sp<GrVkGpu> vkGpu(new GrVkGpu(direct, backendContext, std::move(caps), interface, in Make()
201 if (backendContext.fProtectedContext == GrProtected::kYes && in Make()
210 GrVkGpu::GrVkGpu(GrDirectContext* direct, const GrVkBackendContext& backendContext, in GrVkGpu() argument
218 , fPhysicalDevice(backendContext.fPhysicalDevice) in GrVkGpu()
219 , fDevice(backendContext.fDevice) in GrVkGpu()
220 , fQueue(backendContext.fQueue) in GrVkGpu()
221 , fQueueIndex(backendContext.fGraphicsQueueIndex) in GrVkGpu()
225 , fProtectedContext(backendContext.fProtectedContext) { in GrVkGpu()
226 SkASSERT(!backendContext.fOwnsInstanceAndDevice); in GrVkGpu()
231 VK_CALL(GetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &fPhysDevProps)); in GrVkGpu()
232 VK_CALL(GetPhysicalDeviceMemoryProperties(backendContext.fPhysicalDevice, &fPhysDevMemProps)); in GrVkGpu()