Lines Matching defs:format
78 vk_image_set_format(image, pCreateInfo->format);
117 assert(image->format == VK_FORMAT_UNDEFINED);
177 vk_image_set_format(struct vk_image *image, VkFormat format)
179 image->format = format;
180 image->aspects = vk_format_aspects(format);
191 * "If the image was has a depth-stencil format and was created with
239 * for an image of format VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM.
258 vk_format_description(image->format);
272 vk_format_description(image->format);
299 VkFormat format = vk_format_get_aspect_format(image->format, aspect);
300 const struct util_format_description *fmt = vk_format_description(format);
339 image_view->format = pCreateInfo->format;
372 * match. Otherwise, we trust the driver to use a format it knows what
379 assert(vk_format_get_blocksize(image->format) ==
380 vk_format_get_blocksize(image_view->format));
383 image_view->view_format = pCreateInfo->format;
390 * "If the image has a multi-planar format and
398 * VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR flags, then the format must
399 * be identical to the image format, and the sampler to be used with the
407 assert(pCreateInfo->format == image->format);
411 * "Each depth/stencil format is only compatible with itself."
415 assert(pCreateInfo->format == image->format);
418 assert(pCreateInfo->format == image->format);
420 /* Restrict the format to only the planes chosen.
423 * stencil-only format if only one aspect is chosen and the full
424 * combined format if both aspects are chosen.
426 * For single-plane color images, we just take the format as-is. For
428 * multi-plane format. For single-plane views of multi-plane images, we
429 * want a format compatible with the one plane. Fortunately, this is
433 * and the image has a multi-planar format, and if
436 * format must be compatible with the corresponding plane of the
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;
628 * "If attachment is not VK_ATTACHMENT_UNUSED, and the format of the
629 * referenced attachment is a depth/stencil format which includes both
633 !vk_format_has_stencil(attachments[att_ref->attachment].format))
643 * "If attachment is not VK_ATTACHMENT_UNUSED, and the format of the
644 * referenced attachment is a depth/stencil format which includes both
660 * depth/stencil format, and initialLayout and finalLayout only apply to the
667 * "If format is a depth/stencil format, and either initialLayout or
676 if (!vk_format_has_stencil(att_desc->format))
691 /* From VUID-VkAttachmentDescription2-format-03302/03303:
692 * "If format is a depth/stencil format which includes both depth and