Lines Matching defs:imb

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