Lines Matching refs:pCreateInfo
58 const VkImageCreateInfo *pCreateInfo)
62 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO);
63 assert(pCreateInfo->mipLevels > 0);
64 assert(pCreateInfo->arrayLayers > 0);
65 assert(pCreateInfo->samples > 0);
66 assert(pCreateInfo->extent.width > 0);
67 assert(pCreateInfo->extent.height > 0);
68 assert(pCreateInfo->extent.depth > 0);
70 if (pCreateInfo->flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT)
71 assert(pCreateInfo->imageType == VK_IMAGE_TYPE_2D);
72 if (pCreateInfo->flags & VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT)
73 assert(pCreateInfo->imageType == VK_IMAGE_TYPE_3D);
75 image->create_flags = pCreateInfo->flags;
76 image->image_type = pCreateInfo->imageType;
77 vk_image_set_format(image, pCreateInfo->format);
78 image->extent = sanitize_image_extent(pCreateInfo->imageType,
79 pCreateInfo->extent);
80 image->mip_levels = pCreateInfo->mipLevels;
81 image->array_layers = pCreateInfo->arrayLayers;
82 image->samples = pCreateInfo->samples;
83 image->tiling = pCreateInfo->tiling;
84 image->usage = pCreateInfo->usage;
88 vk_find_struct_const(pCreateInfo->pNext,
92 pCreateInfo->usage;
98 vk_find_struct_const(pCreateInfo->pNext, EXTERNAL_MEMORY_IMAGE_CREATE_INFO);
105 vk_find_struct_const(pCreateInfo->pNext, WSI_IMAGE_CREATE_INFO_MESA);
114 vk_find_struct_const(pCreateInfo->pNext, EXTERNAL_FORMAT_ANDROID);
128 const VkImageCreateInfo *pCreateInfo,
138 vk_image_init(device, image, pCreateInfo);
262 const VkImageViewCreateInfo *pCreateInfo)
266 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO);
267 VK_FROM_HANDLE(vk_image, image, pCreateInfo->image);
269 image_view->create_flags = pCreateInfo->flags;
271 image_view->view_type = pCreateInfo->viewType;
297 const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange;
305 vk_format_is_color(pCreateInfo->format);
309 util_format_get_blocksize(vk_format_to_pipe_format(pCreateInfo->format)));
334 assert(pCreateInfo->format == image->format);
342 assert(pCreateInfo->format == image->format);
345 assert(pCreateInfo->format == image->format);
369 image_view->format = vk_format_stencil_only(pCreateInfo->format);
371 image_view->format = vk_format_depth_only(pCreateInfo->format);
373 image_view->format = pCreateInfo->format;
377 .r = remap_swizzle(pCreateInfo->components.r, VK_COMPONENT_SWIZZLE_R),
378 .g = remap_swizzle(pCreateInfo->components.g, VK_COMPONENT_SWIZZLE_G),
379 .b = remap_swizzle(pCreateInfo->components.b, VK_COMPONENT_SWIZZLE_B),
380 .a = remap_swizzle(pCreateInfo->components.a, VK_COMPONENT_SWIZZLE_A),
417 vk_find_struct_const(pCreateInfo, IMAGE_VIEW_USAGE_CREATE_INFO);
430 const VkImageViewCreateInfo *pCreateInfo,
440 vk_image_view_init(device, image_view, pCreateInfo);