Lines Matching refs:mBackendContext

46         mDestroyCommandPool(mBackendContext->fDevice, mCommandPool, nullptr);  in destroy()
49 mBackendContext.reset(); in destroy()
57 mBackendContext.reset(GrVkBackendContext::Create(&mPresentQueueIndex, canPresent)); in initialize()
60 VkInstance instance = mBackendContext->fInstance; in initialize()
61 VkDevice device = mBackendContext->fDevice; in initialize()
98 commandPoolInfo.queueFamilyIndex = mBackendContext->fGraphicsQueueIndex; in initialize()
100 SkDEBUGCODE(VkResult res =) mCreateCommandPool(mBackendContext->fDevice, in initialize()
105 mGetDeviceQueue(mBackendContext->fDevice, mPresentQueueIndex, 0, &mPresentQueue); in initialize()
108 (GrBackendContext) mBackendContext.get())); in initialize()
133 VkResult res = mWaitForFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences, in getAvailableBackbuffer()
149 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences); in getBackbufferSurface()
154 res = mAcquireNextImageKHR(mBackendContext->fDevice, surface->mSwapchain, UINT64_MAX, in getBackbufferSurface()
168 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences); in getBackbufferSurface()
172 res = mAcquireNextImageKHR(mBackendContext->fDevice, surface->mSwapchain, UINT64_MAX, in getBackbufferSurface()
199 mBackendContext->fGraphicsQueueIndex, // dstQueueFamilyIndex in getBackbufferSurface()
230 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[0]); in getBackbufferSurface()
246 mWaitForFences(mBackendContext->fDevice, 2, surface->mBackbuffers[i].mUsageFences, true, in destroyBuffers()
249 mDestroySemaphore(mBackendContext->fDevice, surface->mBackbuffers[i].mAcquireSemaphore, in destroyBuffers()
251 mDestroySemaphore(mBackendContext->fDevice, surface->mBackbuffers[i].mRenderSemaphore, in destroyBuffers()
253 mFreeCommandBuffers(mBackendContext->fDevice, mCommandPool, 2, in destroyBuffers()
255 mDestroyFence(mBackendContext->fDevice, surface->mBackbuffers[i].mUsageFences[0], 0); in destroyBuffers()
256 mDestroyFence(mBackendContext->fDevice, surface->mBackbuffers[i].mUsageFences[1], 0); in destroyBuffers()
273 mDeviceWaitIdle(mBackendContext->fDevice); in destroySurface()
278 mDestroySwapchainKHR(mBackendContext->fDevice, surface->mSwapchain, nullptr); in destroySurface()
283 mDestroySurfaceKHR(mBackendContext->fInstance, surface->mVkSurface, nullptr); in destroySurface()
290 mGetSwapchainImagesKHR(mBackendContext->fDevice, surface->mSwapchain, &surface->mImageCount, in createBuffers()
294 mGetSwapchainImagesKHR(mBackendContext->fDevice, surface->mSwapchain, in createBuffers()
354 SkDEBUGCODE(res = ) mCreateSemaphore(mBackendContext->fDevice, &semaphoreInfo, nullptr, in createBuffers()
356 SkDEBUGCODE(res = ) mCreateSemaphore(mBackendContext->fDevice, &semaphoreInfo, nullptr, in createBuffers()
358 SkDEBUGCODE(res = ) mAllocateCommandBuffers(mBackendContext->fDevice, &commandBuffersInfo, in createBuffers()
360 SkDEBUGCODE(res = ) mCreateFence(mBackendContext->fDevice, &fenceInfo, nullptr, in createBuffers()
362 SkDEBUGCODE(res = ) mCreateFence(mBackendContext->fDevice, &fenceInfo, nullptr, in createBuffers()
372 VkResult res = mGetPhysicalDeviceSurfaceCapabilitiesKHR(mBackendContext->fPhysicalDevice, in createSwapchain()
379 res = mGetPhysicalDeviceSurfaceFormatsKHR(mBackendContext->fPhysicalDevice, surface->mVkSurface, in createSwapchain()
386 res = mGetPhysicalDeviceSurfaceFormatsKHR(mBackendContext->fPhysicalDevice, surface->mVkSurface, in createSwapchain()
393 res = mGetPhysicalDeviceSurfacePresentModesKHR(mBackendContext->fPhysicalDevice, in createSwapchain()
400 res = mGetPhysicalDeviceSurfacePresentModesKHR(mBackendContext->fPhysicalDevice, in createSwapchain()
481 uint32_t queueFamilies[] = { mBackendContext->fGraphicsQueueIndex, mPresentQueueIndex }; in createSwapchain()
482 if (mBackendContext->fGraphicsQueueIndex != mPresentQueueIndex) { in createSwapchain()
498 res = mCreateSwapchainKHR(mBackendContext->fDevice, &swapchainCreateInfo, nullptr, in createSwapchain()
506 mDeviceWaitIdle(mBackendContext->fDevice); in createSwapchain()
510 mDestroySwapchainKHR(mBackendContext->fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain()
535 VkResult res = mCreateAndroidSurfaceKHR(mBackendContext->fInstance, &surfaceCreateInfo, in createSurface()
544 res = mGetPhysicalDeviceSurfaceSupportKHR(mBackendContext->fPhysicalDevice, in createSurface()
608 mDeviceWaitIdle(mBackendContext->fDevice); in swapBuffers()
635 mBackendContext->fGraphicsQueueIndex, // srcQueueFamilyIndex in swapBuffers()
667 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[1]); in swapBuffers()