Lines Matching refs:img
653 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local
657 &img.dequeue_fence); in CreateSwapchainKHR()
665 img.buffer = buffer; in CreateSwapchainKHR()
666 img.dequeued = true; in CreateSwapchainKHR()
669 VkExtent3D{static_cast<uint32_t>(img.buffer->width), in CreateSwapchainKHR()
670 static_cast<uint32_t>(img.buffer->height), in CreateSwapchainKHR()
672 image_native_buffer.handle = img.buffer->handle; in CreateSwapchainKHR()
673 image_native_buffer.stride = img.buffer->stride; in CreateSwapchainKHR()
674 image_native_buffer.format = img.buffer->format; in CreateSwapchainKHR()
675 image_native_buffer.usage = img.buffer->usage; in CreateSwapchainKHR()
678 dispatch.CreateImage(device, &image_create, nullptr, &img.image); in CreateSwapchainKHR()
692 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local
693 if (img.dequeued) { in CreateSwapchainKHR()
694 surface.window->cancelBuffer(surface.window.get(), img.buffer.get(), in CreateSwapchainKHR()
695 img.dequeue_fence); in CreateSwapchainKHR()
696 img.dequeue_fence = -1; in CreateSwapchainKHR()
697 img.dequeued = false; in CreateSwapchainKHR()
700 if (img.image) in CreateSwapchainKHR()
701 dispatch.DestroyImage(device, img.image, nullptr); in CreateSwapchainKHR()
869 Swapchain::Image& img = swapchain.images[image_idx]; in QueuePresentKHR() local
877 present_info->pWaitSemaphores, img.image, &fence); in QueuePresentKHR()
887 err = window->queueBuffer(window, img.buffer.get(), fence); in QueuePresentKHR()
896 if (img.dequeue_fence >= 0) { in QueuePresentKHR()
897 close(img.dequeue_fence); in QueuePresentKHR()
898 img.dequeue_fence = -1; in QueuePresentKHR()
900 img.dequeued = false; in QueuePresentKHR()
903 ReleaseSwapchainImage(device, window, fence, img); in QueuePresentKHR()
907 ReleaseSwapchainImage(device, nullptr, fence, img); in QueuePresentKHR()