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