Lines Matching refs:image_create_info
2175 VkImageCreateInfo image_create_info = {}; in TEST_F() local
2176 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
2177 image_create_info.pNext = NULL; in TEST_F()
2178 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
2179 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
2180 image_create_info.extent.width = 512; in TEST_F()
2181 image_create_info.extent.height = 64; in TEST_F()
2182 image_create_info.extent.depth = 1; in TEST_F()
2183 image_create_info.mipLevels = 1; in TEST_F()
2184 image_create_info.arrayLayers = 1; in TEST_F()
2185 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
2186 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
2187 image_create_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED; in TEST_F()
2188 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
2189 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
2190 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
2191 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
2194 image_create_info.flags = VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT; in TEST_F()
2197 vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2205 image_create_info.flags = VK_IMAGE_CREATE_SPARSE_ALIASED_BIT; in TEST_F()
2208 vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2236 VkImageCreateInfo image_create_info = {}; in TEST_F() local
2237 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
2238 image_create_info.pNext = NULL; in TEST_F()
2239 image_create_info.imageType = VK_IMAGE_TYPE_1D; in TEST_F()
2240 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
2241 image_create_info.extent.width = 512; in TEST_F()
2242 image_create_info.extent.height = 1; in TEST_F()
2243 image_create_info.extent.depth = 1; in TEST_F()
2244 image_create_info.mipLevels = 1; in TEST_F()
2245 image_create_info.arrayLayers = 1; in TEST_F()
2246 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
2247 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
2248 image_create_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED; in TEST_F()
2249 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
2250 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
2251 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
2252 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
2253 …image_create_info.flags = VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT | VK_BUFFER_CREATE_SPARSE_BINDING_B… in TEST_F()
2257 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2265 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
2266 image_create_info.extent.height = 64; in TEST_F()
2268 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2276 image_create_info.imageType = VK_IMAGE_TYPE_3D; in TEST_F()
2277 image_create_info.extent.depth = 8; in TEST_F()
2279 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2310 VkImageCreateInfo image_create_info = {}; in TEST_F() local
2311 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
2312 image_create_info.pNext = NULL; in TEST_F()
2313 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
2314 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
2315 image_create_info.extent.width = 64; in TEST_F()
2316 image_create_info.extent.height = 64; in TEST_F()
2317 image_create_info.extent.depth = 1; in TEST_F()
2318 image_create_info.mipLevels = 1; in TEST_F()
2319 image_create_info.arrayLayers = 1; in TEST_F()
2320 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
2321 image_create_info.tiling = VK_IMAGE_TILING_LINEAR; in TEST_F()
2322 image_create_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED; in TEST_F()
2323 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
2324 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
2325 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
2326 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
2327 …image_create_info.flags = VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT | VK_BUFFER_CREATE_SPARSE_BINDING_B… in TEST_F()
2333 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2339 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
2342 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
2344 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2351 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
2353 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2360 image_create_info.samples = VK_SAMPLE_COUNT_8_BIT; in TEST_F()
2362 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2369 image_create_info.samples = VK_SAMPLE_COUNT_16_BIT; in TEST_F()
2371 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2591 VkImageCreateInfo image_create_info = {}; in TEST_F() local
2592 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
2593 image_create_info.pNext = NULL; in TEST_F()
2594 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
2595 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
2596 image_create_info.extent.width = 64; in TEST_F()
2597 image_create_info.extent.height = 64; in TEST_F()
2598 image_create_info.extent.depth = 1; in TEST_F()
2599 image_create_info.mipLevels = 1; in TEST_F()
2600 image_create_info.arrayLayers = 1; in TEST_F()
2601 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
2603 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
2604 image_create_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED; in TEST_F()
2605 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
2606 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
2607 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
2608 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
2609 image_create_info.flags = 0; in TEST_F()
2611 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
2613 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image2); in TEST_F()
2855 VkImageCreateInfo image_create_info = {}; in TEST_F() local
2856 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
2857 image_create_info.pNext = NULL; in TEST_F()
2858 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
2859 image_create_info.format = tex_format; in TEST_F()
2860 image_create_info.extent.width = tex_width; in TEST_F()
2861 image_create_info.extent.height = tex_height; in TEST_F()
2862 image_create_info.extent.depth = 1; in TEST_F()
2863 image_create_info.mipLevels = 1; in TEST_F()
2864 image_create_info.arrayLayers = 1; in TEST_F()
2865 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
2866 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
2867 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
2868 image_create_info.flags = 0; in TEST_F()
2879 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
3241 VkImageCreateInfo image_create_info = {}; in TEST_F() local
3242 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
3243 image_create_info.pNext = NULL; in TEST_F()
3244 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
3245 image_create_info.format = tex_format; in TEST_F()
3246 image_create_info.extent.width = tex_width; in TEST_F()
3247 image_create_info.extent.height = tex_height; in TEST_F()
3248 image_create_info.extent.depth = 1; in TEST_F()
3249 image_create_info.mipLevels = 1; in TEST_F()
3250 image_create_info.arrayLayers = 1; in TEST_F()
3251 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
3252 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
3253 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
3254 image_create_info.flags = 0; in TEST_F()
3262 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
3309 VkImageCreateInfo image_create_info = {}; in TEST_F() local
3310 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
3311 image_create_info.pNext = NULL; in TEST_F()
3312 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
3313 image_create_info.format = tex_format; in TEST_F()
3314 image_create_info.extent.width = tex_width; in TEST_F()
3315 image_create_info.extent.height = tex_height; in TEST_F()
3316 image_create_info.extent.depth = 1; in TEST_F()
3317 image_create_info.mipLevels = 1; in TEST_F()
3318 image_create_info.arrayLayers = 1; in TEST_F()
3319 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
3320 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
3321 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
3322 image_create_info.flags = 0; in TEST_F()
3336 err = vkCreateImage(device(), &image_create_info, NULL, &image); in TEST_F()
3380 err = vkCreateImage(device(), &image_create_info, NULL, &image); in TEST_F()
3426 err = vkCreateImage(device(), &image_create_info, NULL, &image); in TEST_F()
3515 err = vkCreateImage(device(), &image_create_info, NULL, &image); in TEST_F()
3567 VkImageCreateInfo sparse_image_create_info = image_create_info; in TEST_F()
3663 VkImageCreateInfo image_create_info = {}; in TEST_F() local
3664 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
3665 image_create_info.pNext = NULL; in TEST_F()
3666 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
3667 image_create_info.format = tex_format; in TEST_F()
3668 image_create_info.extent.width = tex_width; in TEST_F()
3669 image_create_info.extent.height = tex_height; in TEST_F()
3670 image_create_info.extent.depth = 1; in TEST_F()
3671 image_create_info.mipLevels = 1; in TEST_F()
3672 image_create_info.arrayLayers = 1; in TEST_F()
3673 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
3674 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
3675 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
3676 image_create_info.flags = 0; in TEST_F()
3684 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
3823 VkImageCreateInfo image_create_info = {}; in TEST_F() local
3824 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
3825 image_create_info.pNext = NULL; in TEST_F()
3826 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
3827 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
3828 image_create_info.extent.width = 256; in TEST_F()
3829 image_create_info.extent.height = 256; in TEST_F()
3830 image_create_info.extent.depth = 1; in TEST_F()
3831 image_create_info.mipLevels = 1; in TEST_F()
3832 image_create_info.arrayLayers = 1; in TEST_F()
3833 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
3834 image_create_info.flags = 0; in TEST_F()
3853 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
3854 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
3856 src_image.init(&image_create_info); in TEST_F()
3858 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
3859 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
3861 dst_image.init(&image_create_info); in TEST_F()
3876 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
3877 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
3879 src_image.init(&image_create_info); in TEST_F()
3881 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
3882 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
3884 dst_image.init(&image_create_info); in TEST_F()
3910 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
3911 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
3913 dst_image.init(&image_create_info); in TEST_F()
3930 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
3931 … image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
3933 src_image.init(*m_device, (const VkImageCreateInfo &)image_create_info, reqs); in TEST_F()
4718 VkImageCreateInfo image_create_info = {}; in TEST_F() local
4719 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
4720 image_create_info.pNext = NULL; in TEST_F()
4721 image_create_info.imageType = VK_IMAGE_TYPE_3D; in TEST_F()
4722 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
4723 image_create_info.extent.width = granularity.width * 2; in TEST_F()
4724 image_create_info.extent.height = granularity.height * 2; in TEST_F()
4725 image_create_info.extent.depth = granularity.depth * 2; in TEST_F()
4726 image_create_info.mipLevels = 1; in TEST_F()
4727 image_create_info.arrayLayers = 1; in TEST_F()
4728 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
4729 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
4730 image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
4731 image_create_info.flags = 0; in TEST_F()
4734 src_image_obj.init(&image_create_info); in TEST_F()
4738 image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
4741 dst_image_obj.init(&image_create_info); in TEST_F()
9656 VkImageCreateInfo image_create_info = {}; in TEST_F() local
9657 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
9658 image_create_info.pNext = NULL; in TEST_F()
9659 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
9660 image_create_info.format = tex_format; in TEST_F()
9661 image_create_info.extent.width = 32; in TEST_F()
9662 image_create_info.extent.height = 32; in TEST_F()
9663 image_create_info.extent.depth = 1; in TEST_F()
9664 image_create_info.mipLevels = 1; in TEST_F()
9665 image_create_info.arrayLayers = 1; in TEST_F()
9666 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
9667 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
9668 image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
9669 image_create_info.flags = 0; in TEST_F()
9670 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
9947 VkImageCreateInfo image_create_info = {}; in TEST_F() local
9948 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
9949 image_create_info.pNext = NULL; in TEST_F()
9950 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
9951 image_create_info.format = tex_format; in TEST_F()
9952 image_create_info.extent.width = 32; in TEST_F()
9953 image_create_info.extent.height = 32; in TEST_F()
9954 image_create_info.extent.depth = 1; in TEST_F()
9955 image_create_info.mipLevels = 1; in TEST_F()
9956 image_create_info.arrayLayers = 1; in TEST_F()
9957 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
9958 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
9959 image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
9960 image_create_info.flags = 0; in TEST_F()
9961 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
10425 VkImageCreateInfo image_create_info = {}; in TEST_F() local
10426 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
10427 image_create_info.pNext = NULL; in TEST_F()
10428 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
10429 image_create_info.format = tex_format; in TEST_F()
10430 image_create_info.extent.width = tex_width; in TEST_F()
10431 image_create_info.extent.height = tex_height; in TEST_F()
10432 image_create_info.extent.depth = 1; in TEST_F()
10433 image_create_info.mipLevels = 1; in TEST_F()
10434 image_create_info.arrayLayers = 1; in TEST_F()
10435 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
10436 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
10437 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
10438 image_create_info.flags = 0; in TEST_F()
10439 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
10441 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image2); in TEST_F()
11341 VkImageCreateInfo image_create_info = {}; in TEST_F() local
11342 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
11343 image_create_info.pNext = NULL; in TEST_F()
11344 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
11345 image_create_info.format = tex_format; in TEST_F()
11346 image_create_info.extent.width = tex_width; in TEST_F()
11347 image_create_info.extent.height = tex_height; in TEST_F()
11348 image_create_info.extent.depth = 1; in TEST_F()
11349 image_create_info.mipLevels = 1; in TEST_F()
11350 image_create_info.arrayLayers = 1; in TEST_F()
11351 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
11352 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
11353 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
11354 image_create_info.flags = 0; in TEST_F()
11355 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
14611 VkImageCreateInfo image_create_info = {}; in TEST_F() local
14612 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
14613 image_create_info.pNext = NULL; in TEST_F()
14614 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
14615 image_create_info.format = tex_format; in TEST_F()
14616 image_create_info.extent.width = tex_width; in TEST_F()
14617 image_create_info.extent.height = tex_height; in TEST_F()
14618 image_create_info.extent.depth = 1; in TEST_F()
14619 image_create_info.mipLevels = 1; in TEST_F()
14620 image_create_info.arrayLayers = 1; in TEST_F()
14621 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
14622 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
14623 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
14626 dstImage.init(*m_device, (const VkImageCreateInfo &)image_create_info); in TEST_F()
14628 …const VkImageSubresourceRange range = vk_testing::Image::subresource_range(image_create_info, VK_I… in TEST_F()
14654 VkImageCreateInfo image_create_info = vk_testing::Image::create_info(); in TEST_F() local
14655 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
14656 image_create_info.format = depth_format; in TEST_F()
14657 image_create_info.extent.width = 64; in TEST_F()
14658 image_create_info.extent.height = 64; in TEST_F()
14659 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
14661 image_create_info.usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; in TEST_F()
14664 dst_image_bad_usage.init(*m_device, (const VkImageCreateInfo &)image_create_info, reqs); in TEST_F()
14665 …const VkImageSubresourceRange range = vk_testing::Image::subresource_range(image_create_info, VK_I… in TEST_F()
14674 …image_create_info.usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DS… in TEST_F()
14676 dst_image.init(*m_device, (const VkImageCreateInfo &)image_create_info, reqs); in TEST_F()
17819 VkImageCreateInfo image_create_info = {}; in TEST_F() local
17820 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
17821 image_create_info.pNext = NULL; in TEST_F()
17822 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
17823 image_create_info.format = tex_format; in TEST_F()
17824 image_create_info.extent.width = tex_width; in TEST_F()
17825 image_create_info.extent.height = tex_height; in TEST_F()
17826 image_create_info.extent.depth = 1; in TEST_F()
17827 image_create_info.mipLevels = 1; in TEST_F()
17828 image_create_info.arrayLayers = 4; in TEST_F()
17829 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
17830 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
17831 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
17832 image_create_info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F()
17833 image_create_info.flags = 0; in TEST_F()
17835 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &src_image); in TEST_F()
17837 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
17838 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &dst_image); in TEST_F()
17840 image_create_info.format = VK_FORMAT_D16_UNORM; in TEST_F()
17841 image_create_info.usage |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; in TEST_F()
17842 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &depth_image); in TEST_F()
17950 transfer_dst_image_barrier[0].subresourceRange.layerCount = image_create_info.arrayLayers; in TEST_F()
17951 transfer_dst_image_barrier[0].subresourceRange.levelCount = image_create_info.mipLevels; in TEST_F()
18000 image_barrier[0].subresourceRange.layerCount = image_create_info.arrayLayers; in TEST_F()
18001 image_barrier[0].subresourceRange.levelCount = image_create_info.mipLevels; in TEST_F()
23088 VkImageCreateInfo image_create_info = {}; in TEST_F() local
23089 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
23090 image_create_info.pNext = NULL; in TEST_F()
23091 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
23092 image_create_info.format = tex_format; in TEST_F()
23093 image_create_info.extent.width = tex_width; in TEST_F()
23094 image_create_info.extent.height = tex_height; in TEST_F()
23095 image_create_info.extent.depth = 1; in TEST_F()
23096 image_create_info.mipLevels = 1; in TEST_F()
23097 image_create_info.arrayLayers = 1; in TEST_F()
23098 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
23099 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
23100 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
23101 image_create_info.flags = 0; in TEST_F()
23103 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
23237 VkImageCreateInfo image_create_info = {}; in TEST_F() local
23238 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
23239 image_create_info.pNext = NULL; in TEST_F()
23240 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
23241 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
23242 image_create_info.extent.width = 32; in TEST_F()
23243 image_create_info.extent.height = 32; in TEST_F()
23244 image_create_info.extent.depth = 1; in TEST_F()
23245 image_create_info.mipLevels = 1; in TEST_F()
23246 image_create_info.arrayLayers = 4; in TEST_F()
23247 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
23248 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
23249 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
23250 image_create_info.flags = 0; in TEST_F()
23252 src_image_obj.init(&image_create_info); in TEST_F()
23255 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
23256 dst_image_obj.init(&image_create_info); in TEST_F()
23293 VkImageCreateInfo image_create_info = {}; in TEST_F() local
23294 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
23295 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
23296 image_create_info.format = VK_FORMAT_UNDEFINED; in TEST_F()
23297 image_create_info.extent.width = 32; in TEST_F()
23298 image_create_info.extent.height = 32; in TEST_F()
23299 image_create_info.extent.depth = 1; in TEST_F()
23300 image_create_info.mipLevels = 1; in TEST_F()
23301 image_create_info.arrayLayers = 1; in TEST_F()
23302 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
23303 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
23304 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
23309 vkCreateImage(m_device->handle(), &image_create_info, NULL, &image); in TEST_F()
25921 VkImageCreateInfo image_create_info = {}; in TEST_F() local
25922 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
25923 image_create_info.pNext = NULL; in TEST_F()
25924 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
25925 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
25926 image_create_info.extent.width = 32; in TEST_F()
25927 image_create_info.extent.height = 32; in TEST_F()
25928 image_create_info.extent.depth = 1; in TEST_F()
25929 image_create_info.mipLevels = 1; in TEST_F()
25930 image_create_info.arrayLayers = 1; in TEST_F()
25931 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
25932 image_create_info.tiling = VK_IMAGE_TILING_LINEAR; in TEST_F()
25933 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
25934 image_create_info.flags = 0; in TEST_F()
25936 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage); in TEST_F()
25939 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
25941 image_create_info.format = VK_FORMAT_R5G5B5A1_UNORM_PACK16; in TEST_F()
25943 …vkGetPhysicalDeviceFormatProperties(m_device->phy().handle(), image_create_info.format, &propertie… in TEST_F()
25950 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage); in TEST_F()
26323 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26324 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26325 image_create_info.pNext = NULL; in TEST_F()
26326 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26327 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26328 image_create_info.extent.width = 32; in TEST_F()
26329 image_create_info.extent.height = 1; in TEST_F()
26330 image_create_info.extent.depth = 1; in TEST_F()
26331 image_create_info.mipLevels = 1; in TEST_F()
26332 image_create_info.arrayLayers = 1; in TEST_F()
26333 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26334 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26335 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
26336 image_create_info.flags = 0; in TEST_F()
26339 srcImage.init(&image_create_info); in TEST_F()
26343 dstImage.init(&image_create_info); in TEST_F()
26380 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26381 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26382 image_create_info.pNext = NULL; in TEST_F()
26383 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26384 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26385 image_create_info.extent.width = 32; in TEST_F()
26386 image_create_info.extent.height = 1; in TEST_F()
26387 image_create_info.extent.depth = 1; in TEST_F()
26388 image_create_info.mipLevels = 1; in TEST_F()
26389 image_create_info.arrayLayers = 1; in TEST_F()
26390 image_create_info.samples = VK_SAMPLE_COUNT_4_BIT; in TEST_F()
26391 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26394 image_create_info.usage = in TEST_F()
26396 image_create_info.flags = 0; in TEST_F()
26399 srcImage.init(&image_create_info); in TEST_F()
26403 dstImage.init(&image_create_info); in TEST_F()
26451 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26452 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26453 image_create_info.pNext = NULL; in TEST_F()
26454 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26455 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26456 image_create_info.extent.width = 32; in TEST_F()
26457 image_create_info.extent.height = 1; in TEST_F()
26458 image_create_info.extent.depth = 1; in TEST_F()
26459 image_create_info.mipLevels = 1; in TEST_F()
26460 image_create_info.arrayLayers = 1; in TEST_F()
26461 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
26462 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26465 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
26466 image_create_info.flags = 0; in TEST_F()
26468 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage); in TEST_F()
26472 image_create_info.format = VK_FORMAT_R32_SFLOAT; in TEST_F()
26475 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
26476 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26478 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage); in TEST_F()
26556 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26557 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26558 image_create_info.pNext = NULL; in TEST_F()
26559 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26560 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26561 image_create_info.extent.width = 32; in TEST_F()
26562 image_create_info.extent.height = 1; in TEST_F()
26563 image_create_info.extent.depth = 1; in TEST_F()
26564 image_create_info.mipLevels = 1; in TEST_F()
26565 image_create_info.arrayLayers = 1; in TEST_F()
26566 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
26567 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26570 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
26571 image_create_info.flags = 0; in TEST_F()
26573 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &srcImage); in TEST_F()
26576 image_create_info.imageType = VK_IMAGE_TYPE_1D; in TEST_F()
26579 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
26580 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26582 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &dstImage); in TEST_F()
26651 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26652 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26653 image_create_info.pNext = NULL; in TEST_F()
26654 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26655 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26656 image_create_info.extent.width = 32; in TEST_F()
26657 image_create_info.extent.height = 32; in TEST_F()
26658 image_create_info.extent.depth = 1; in TEST_F()
26659 image_create_info.mipLevels = 1; in TEST_F()
26660 image_create_info.arrayLayers = 1; in TEST_F()
26661 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
26662 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26663 image_create_info.usage = in TEST_F()
26667 image_create_info.flags = 0; in TEST_F()
26668 srcImage.init(&image_create_info); in TEST_F()
26673 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26674 dstImage.init(&image_create_info); in TEST_F()
26727 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26728 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26729 image_create_info.pNext = NULL; in TEST_F()
26730 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26731 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
26732 image_create_info.extent.width = 32; in TEST_F()
26733 image_create_info.extent.height = 32; in TEST_F()
26734 image_create_info.extent.depth = 1; in TEST_F()
26735 image_create_info.mipLevels = 1; in TEST_F()
26736 image_create_info.arrayLayers = 1; in TEST_F()
26737 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
26738 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26739 image_create_info.usage = in TEST_F()
26743 image_create_info.flags = 0; in TEST_F()
26744 srcImage.init(&image_create_info); in TEST_F()
26749 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26750 dstImage.init(&image_create_info); in TEST_F()
26784 resolveRegion.srcSubresource.mipLevel = image_create_info.mipLevels; in TEST_F()
26791 resolveRegion.dstSubresource.mipLevel = image_create_info.mipLevels; in TEST_F()
26798 resolveRegion.srcSubresource.baseArrayLayer = image_create_info.arrayLayers; in TEST_F()
26805 resolveRegion.dstSubresource.baseArrayLayer = image_create_info.arrayLayers; in TEST_F()
26874 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26875 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26876 image_create_info.pNext = NULL; in TEST_F()
26877 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26878 image_create_info.format = tex_format_bad; in TEST_F()
26879 image_create_info.extent.width = tex_width; in TEST_F()
26880 image_create_info.extent.height = tex_height; in TEST_F()
26881 image_create_info.extent.depth = 1; in TEST_F()
26882 image_create_info.mipLevels = 1; in TEST_F()
26883 image_create_info.arrayLayers = 1; in TEST_F()
26884 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26885 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26886 …image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; in TEST_F()
26887 image_create_info.flags = 0; in TEST_F()
26889 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image_bad); in TEST_F()
26891 image_create_info.format = tex_format_good; in TEST_F()
26892 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
26893 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image_good); in TEST_F()
26951 VkImageCreateInfo image_create_info = {}; in TEST_F() local
26952 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
26953 image_create_info.pNext = NULL; in TEST_F()
26954 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
26955 image_create_info.format = color_format; in TEST_F()
26956 image_create_info.extent.width = img_width; in TEST_F()
26957 image_create_info.extent.height = img_height; in TEST_F()
26958 image_create_info.extent.depth = 1; in TEST_F()
26959 image_create_info.mipLevels = 1; in TEST_F()
26960 image_create_info.arrayLayers = 1; in TEST_F()
26961 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
26962 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
26964 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT; in TEST_F()
26966 color_image_no_transfer.init(*m_device, image_create_info); in TEST_F()
26968 image_create_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
26970 color_image.init(*m_device, image_create_info); in TEST_F()
26972 …SubresourceRange color_range = vk_testing::Image::subresource_range(image_create_info, VK_IMAGE_AS… in TEST_F()
27072 VkImageCreateInfo image_create_info = {}; in TEST_F() local
27073 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
27074 image_create_info.pNext = NULL; in TEST_F()
27075 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
27076 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
27077 image_create_info.extent.width = 32; in TEST_F()
27078 image_create_info.extent.height = 1; in TEST_F()
27079 image_create_info.extent.depth = 1; in TEST_F()
27080 image_create_info.mipLevels = 1; in TEST_F()
27081 image_create_info.arrayLayers = 1; in TEST_F()
27082 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
27083 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
27084 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
27085 image_create_info.flags = 0; in TEST_F()
27091 image.init(&image_create_info); in TEST_F()
29572 VkImageCreateInfo image_create_info = {}; in TEST_F() local
29573 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
29574 image_create_info.pNext = NULL; in TEST_F()
29575 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
29576 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
29577 image_create_info.extent.width = 64; in TEST_F()
29578 image_create_info.extent.height = 64; in TEST_F()
29579 image_create_info.extent.depth = 1; in TEST_F()
29580 image_create_info.mipLevels = 1; in TEST_F()
29581 image_create_info.arrayLayers = 1; in TEST_F()
29582 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
29583 image_create_info.tiling = image_tiling; in TEST_F()
29584 image_create_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED; in TEST_F()
29585 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
29586 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
29587 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
29588 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
29589 image_create_info.flags = 0; in TEST_F()
29594 err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
30255 VkImageCreateInfo image_create_info = {}; in TEST_F() local
30256 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
30257 image_create_info.pNext = NULL; in TEST_F()
30258 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
30259 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
30260 image_create_info.extent.width = 64; in TEST_F()
30261 image_create_info.extent.height = 64; in TEST_F()
30262 image_create_info.extent.depth = 1; in TEST_F()
30263 image_create_info.mipLevels = 1; in TEST_F()
30264 image_create_info.arrayLayers = 1; in TEST_F()
30265 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
30266 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
30267 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT; in TEST_F()
30268 image_create_info.flags = VK_IMAGE_CREATE_SPARSE_BINDING_BIT; in TEST_F()
30269 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
30287 image_create_info.extent.width *= 2; in TEST_F()
30288 image_create_info.extent.height *= 2; in TEST_F()
30289 err = vkCreateImage(m_device->device(), &image_create_info, nullptr, &image); in TEST_F()
30352 VkImageCreateInfo image_create_info = {}; in TEST_F() local
30353 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
30354 image_create_info.pNext = NULL; in TEST_F()
30355 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
30356 image_create_info.format = VK_FORMAT_B8G8R8A8_UNORM; in TEST_F()
30357 image_create_info.extent.width = 64; in TEST_F()
30358 image_create_info.extent.height = 64; in TEST_F()
30359 image_create_info.extent.depth = 1; in TEST_F()
30360 image_create_info.mipLevels = 1; in TEST_F()
30361 image_create_info.arrayLayers = 1; in TEST_F()
30362 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
30363 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
30364 image_create_info.usage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in TEST_F()
30365 …image_create_info.flags = VK_IMAGE_CREATE_SPARSE_BINDING_BIT | VK_IMAGE_CREATE_SPARSE_RESIDENCY_BI… in TEST_F()
30366 VkResult err = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
34962 VkImageCreateInfo image_create_info = {}; in TEST_F() local
34963 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
34964 image_create_info.pNext = NULL; in TEST_F()
34965 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
34966 image_create_info.format = VK_FORMAT_R8_UINT; in TEST_F()
34967 image_create_info.extent.width = 4; in TEST_F()
34968 image_create_info.extent.height = 4; in TEST_F()
34969 image_create_info.extent.depth = 1; in TEST_F()
34970 image_create_info.mipLevels = 1; in TEST_F()
34971 image_create_info.arrayLayers = 1; in TEST_F()
34972 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
34973 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
34974 image_create_info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F()
34975 …image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_… in TEST_F()
34976 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
34977 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
34978 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
34979 image_create_info.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; in TEST_F()
34982 image_create_info.imageType = VK_IMAGE_TYPE_3D; in TEST_F()
34984 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
34990 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
34993 image_create_info.samples = VK_SAMPLE_COUNT_2_BIT; in TEST_F()
34995 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35001 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
35004 image_create_info.tiling = VK_IMAGE_TILING_LINEAR; in TEST_F()
35006 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35012 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
35015 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35336 VkImageCreateInfo image_create_info = {}; in TEST_F() local
35337 image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in TEST_F()
35338 image_create_info.pNext = NULL; in TEST_F()
35339 image_create_info.imageType = VK_IMAGE_TYPE_1D; in TEST_F()
35340 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
35341 image_create_info.extent.width = 2; in TEST_F()
35342 image_create_info.extent.height = 1; in TEST_F()
35343 image_create_info.extent.depth = 1; in TEST_F()
35344 image_create_info.mipLevels = 1; in TEST_F()
35345 image_create_info.arrayLayers = 1; in TEST_F()
35346 image_create_info.samples = VK_SAMPLE_COUNT_1_BIT; in TEST_F()
35347 image_create_info.tiling = VK_IMAGE_TILING_OPTIMAL; in TEST_F()
35348 image_create_info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; in TEST_F()
35349 image_create_info.usage = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in TEST_F()
35350 image_create_info.queueFamilyIndexCount = 0; in TEST_F()
35351 image_create_info.pQueueFamilyIndices = NULL; in TEST_F()
35352 image_create_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; in TEST_F()
35353 image_create_info.flags = VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV; in TEST_F()
35357 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35365 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
35366 image_create_info.extent.height = 2; in TEST_F()
35367 image_create_info.format = VK_FORMAT_D24_UNORM_S8_UINT; in TEST_F()
35369 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35375 image_create_info.format = VK_FORMAT_R8G8B8A8_UNORM; in TEST_F()
35378 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
35379 image_create_info.extent.height = 1; in TEST_F()
35381 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35389 image_create_info.imageType = VK_IMAGE_TYPE_3D; in TEST_F()
35390 image_create_info.extent.height = 2; in TEST_F()
35392 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35398 image_create_info.imageType = VK_IMAGE_TYPE_2D; in TEST_F()
35401 image_create_info.extent = {7, 7, 1}; in TEST_F()
35402 image_create_info.mipLevels = 3; // 3 = ceil(log2(7)) in TEST_F()
35403 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35410 image_create_info.extent = {8, 8, 1}; in TEST_F()
35411 image_create_info.mipLevels = 3; // 3 = ceil(log2(8)) in TEST_F()
35412 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35419 image_create_info.extent = {9, 9, 1}; in TEST_F()
35420 image_create_info.mipLevels = 3; // 4 = ceil(log2(9)) in TEST_F()
35421 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()
35429 image_create_info.extent = {8, 8, 1}; in TEST_F()
35430 image_create_info.mipLevels = 4; // 3 = ceil(log2(8)) in TEST_F()
35432 result = vkCreateImage(m_device->device(), &image_create_info, NULL, &image); in TEST_F()