Lines Matching refs:pCreateInfo
59 const VkImageCreateInfo *pCreateInfo)
63 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO);
64 assert(pCreateInfo->mipLevels > 0);
65 assert(pCreateInfo->arrayLayers > 0);
66 assert(pCreateInfo->samples > 0);
67 assert(pCreateInfo->extent.width > 0);
68 assert(pCreateInfo->extent.height > 0);
69 assert(pCreateInfo->extent.depth > 0);
71 if (pCreateInfo->flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT)
72 assert(pCreateInfo->imageType == VK_IMAGE_TYPE_2D);
73 if (pCreateInfo->flags & VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT)
74 assert(pCreateInfo->imageType == VK_IMAGE_TYPE_3D);
76 image->create_flags = pCreateInfo->flags;
77 image->image_type = pCreateInfo->imageType;
78 vk_image_set_format(image, pCreateInfo->format);
79 image->extent = sanitize_image_extent(pCreateInfo->imageType,
80 pCreateInfo->extent);
81 image->mip_levels = pCreateInfo->mipLevels;
82 image->array_layers = pCreateInfo->arrayLayers;
83 image->samples = pCreateInfo->samples;
84 image->tiling = pCreateInfo->tiling;
85 image->usage = pCreateInfo->usage;
89 vk_find_struct_const(pCreateInfo->pNext,
93 pCreateInfo->usage;
99 vk_find_struct_const(pCreateInfo->pNext, EXTERNAL_MEMORY_IMAGE_CREATE_INFO);
106 vk_find_struct_const(pCreateInfo->pNext, WSI_IMAGE_CREATE_INFO_MESA);
115 vk_find_struct_const(pCreateInfo->pNext, EXTERNAL_FORMAT_ANDROID);
129 const VkImageCreateInfo *pCreateInfo,
139 vk_image_init(device, image, pCreateInfo);
329 const VkImageViewCreateInfo *pCreateInfo)
333 assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO);
334 VK_FROM_HANDLE(vk_image, image, pCreateInfo->image);
336 image_view->create_flags = pCreateInfo->flags;
338 image_view->view_type = pCreateInfo->viewType;
339 image_view->format = pCreateInfo->format;
368 const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange;
383 image_view->view_format = pCreateInfo->format;
407 assert(pCreateInfo->format == image->format);
415 assert(pCreateInfo->format == image->format);
418 assert(pCreateInfo->format == image->format);
441 image_view->view_format = vk_format_stencil_only(pCreateInfo->format);
443 image_view->view_format = vk_format_depth_only(pCreateInfo->format);
445 image_view->view_format = pCreateInfo->format;
450 .r = remap_swizzle(pCreateInfo->components.r, VK_COMPONENT_SWIZZLE_R),
451 .g = remap_swizzle(pCreateInfo->components.g, VK_COMPONENT_SWIZZLE_G),
452 .b = remap_swizzle(pCreateInfo->components.b, VK_COMPONENT_SWIZZLE_B),
453 .a = remap_swizzle(pCreateInfo->components.a, VK_COMPONENT_SWIZZLE_A),
465 vk_find_struct_const(pCreateInfo, IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT);
503 vk_find_struct_const(pCreateInfo, IMAGE_VIEW_USAGE_CREATE_INFO);
517 const VkImageViewCreateInfo *pCreateInfo,
527 vk_image_view_init(device, image_view, driver_internal, pCreateInfo);