Lines Matching refs:imb
1185 VkImageMemoryBarrier imb; in render_swapchain_display() local
1186 imb.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in render_swapchain_display()
1187 imb.pNext = nullptr; in render_swapchain_display()
1188 imb.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1189 imb.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1190 imb.oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1191 imb.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in render_swapchain_display()
1192 imb.image = data->images[image_index]; in render_swapchain_display()
1193 imb.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in render_swapchain_display()
1194 imb.subresourceRange.baseMipLevel = 0; in render_swapchain_display()
1195 imb.subresourceRange.levelCount = 1; in render_swapchain_display()
1196 imb.subresourceRange.baseArrayLayer = 0; in render_swapchain_display()
1197 imb.subresourceRange.layerCount = 1; in render_swapchain_display()
1198 imb.srcQueueFamilyIndex = present_queue->family_index; in render_swapchain_display()
1199 imb.dstQueueFamilyIndex = device_data->graphic_queue->family_index; in render_swapchain_display()
1206 1, &imb); /* image memory barriers */ in render_swapchain_display()
1331 imb.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in render_swapchain_display()
1332 imb.pNext = nullptr; in render_swapchain_display()
1333 imb.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1334 imb.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1335 imb.oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1336 imb.newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1337 imb.image = data->images[image_index]; in render_swapchain_display()
1338 imb.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in render_swapchain_display()
1339 imb.subresourceRange.baseMipLevel = 0; in render_swapchain_display()
1340 imb.subresourceRange.levelCount = 1; in render_swapchain_display()
1341 imb.subresourceRange.baseArrayLayer = 0; in render_swapchain_display()
1342 imb.subresourceRange.layerCount = 1; in render_swapchain_display()
1343 imb.srcQueueFamilyIndex = device_data->graphic_queue->family_index; in render_swapchain_display()
1344 imb.dstQueueFamilyIndex = present_queue->family_index; in render_swapchain_display()
1351 1, &imb); /* image memory barriers */ in render_swapchain_display()