Lines Matching refs:img_barrier
1954 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local
1955 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F()
1956 img_barrier.srcAccessMask = VK_ACCESS_HOST_WRITE_BIT; in TEST_F()
1957 img_barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT; in TEST_F()
1958 img_barrier.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F()
1959 img_barrier.newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; in TEST_F()
1960 img_barrier.image = image.handle(); in TEST_F()
1961 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
1962 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
1963 … img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in TEST_F()
1964 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
1965 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
1966 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
1967 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
1969 0, nullptr, 1, &img_barrier); in TEST_F()
2829 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local
2830 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F()
2831 img_barrier.pNext = NULL; in TEST_F()
2832 img_barrier.srcAccessMask = VK_ACCESS_HOST_WRITE_BIT; in TEST_F()
2833 img_barrier.dstAccessMask = VK_ACCESS_HOST_WRITE_BIT; in TEST_F()
2834 img_barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F()
2835 img_barrier.newLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F()
2836 img_barrier.image = image.handle(); in TEST_F()
2837 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
2838 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
2839 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
2840 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
2841 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
2842 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
2843 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
2845 &img_barrier); in TEST_F()
2848 img_barrier.oldLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F()
2849 img_barrier.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F()
2851 &img_barrier); in TEST_F()
2854 img_barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F()
2855 img_barrier.newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; in TEST_F()
2857 &img_barrier); in TEST_F()
2860 img_barrier.oldLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; in TEST_F()
2861 img_barrier.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; in TEST_F()
2863 &img_barrier); in TEST_F()
3633 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local
3634 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F()
3635 img_barrier.pNext = NULL; in TEST_F()
3636 img_barrier.srcAccessMask = VK_ACCESS_HOST_WRITE_BIT; in TEST_F()
3637 img_barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT; in TEST_F()
3638 img_barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F()
3639 img_barrier.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in TEST_F()
3640 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
3641 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
3642 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
3643 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
3644 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
3645 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
3646 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
3696 img_barrier.image = buffer_layouts[i].image_obj.handle(); in TEST_F()
3698 … img_barrier.subresourceRange.aspectMask = (usage == VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) in TEST_F()
3702 img_barrier.oldLayout = buffer_layouts[i].old_layout; in TEST_F()
3703 img_barrier.newLayout = buffer_layouts[i].new_layout; in TEST_F()
3705 nullptr, 0, nullptr, 1, &img_barrier); in TEST_F()
3707 img_barrier.oldLayout = buffer_layouts[i].new_layout; in TEST_F()
3708 img_barrier.newLayout = buffer_layouts[i].old_layout; in TEST_F()
3710 nullptr, 0, nullptr, 1, &img_barrier); in TEST_F()
3714 img_barrier.oldLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F()
3715 img_barrier.newLayout = VK_IMAGE_LAYOUT_GENERAL; in TEST_F()
7308 VkImageMemoryBarrier img_barrier = {}; in TEST_F() local
7309 img_barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; in TEST_F()
7310 img_barrier.srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; in TEST_F()
7311 img_barrier.dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; in TEST_F()
7312 img_barrier.oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; in TEST_F()
7313 img_barrier.newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; in TEST_F()
7314 img_barrier.image = mpimage.handle(); in TEST_F()
7315 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
7316 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
7317 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
7318 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
7319 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
7320 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
7321 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
7323 VK_DEPENDENCY_BY_REGION_BIT, 0, nullptr, 0, nullptr, 1, &img_barrier); in TEST_F()
7842 auto img_barrier = lvl_init_struct<VkImageMemoryBarrier>(); in TEST_F() local
7843 img_barrier.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F()
7844 img_barrier.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; in TEST_F()
7845 img_barrier.image = swapchain_images[0]; in TEST_F()
7846 img_barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
7847 img_barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; in TEST_F()
7848 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
7849 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
7850 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
7851 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
7852 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
7854 nullptr, 0, nullptr, 1, &img_barrier); in TEST_F()