Lines Matching refs:imb
1194 VkImageMemoryBarrier imb; in render_swapchain_display() local
1195 imb.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in render_swapchain_display()
1196 imb.pNext = nullptr; in render_swapchain_display()
1197 imb.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1198 imb.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1199 imb.oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1200 imb.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in render_swapchain_display()
1201 imb.image = data->images[image_index]; in render_swapchain_display()
1202 imb.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in render_swapchain_display()
1203 imb.subresourceRange.baseMipLevel = 0; in render_swapchain_display()
1204 imb.subresourceRange.levelCount = 1; in render_swapchain_display()
1205 imb.subresourceRange.baseArrayLayer = 0; in render_swapchain_display()
1206 imb.subresourceRange.layerCount = 1; in render_swapchain_display()
1207 imb.srcQueueFamilyIndex = present_queue->family_index; in render_swapchain_display()
1208 imb.dstQueueFamilyIndex = device_data->graphic_queue->family_index; in render_swapchain_display()
1215 1, &imb); /* image memory barriers */ in render_swapchain_display()
1340 imb.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in render_swapchain_display()
1341 imb.pNext = nullptr; in render_swapchain_display()
1342 imb.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1343 imb.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; in render_swapchain_display()
1344 imb.oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1345 imb.newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in render_swapchain_display()
1346 imb.image = data->images[image_index]; in render_swapchain_display()
1347 imb.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in render_swapchain_display()
1348 imb.subresourceRange.baseMipLevel = 0; in render_swapchain_display()
1349 imb.subresourceRange.levelCount = 1; in render_swapchain_display()
1350 imb.subresourceRange.baseArrayLayer = 0; in render_swapchain_display()
1351 imb.subresourceRange.layerCount = 1; in render_swapchain_display()
1352 imb.srcQueueFamilyIndex = device_data->graphic_queue->family_index; in render_swapchain_display()
1353 imb.dstQueueFamilyIndex = present_queue->family_index; in render_swapchain_display()
1360 1, &imb); /* image memory barriers */ in render_swapchain_display()