Lines Matching defs:aspect

223 /** Expands the given aspect mask relative to the image
351 * stencil-only format if only one aspect is chosen and the full combined
455 VkImageAspectFlagBits aspect)
457 assert(util_bitcount(aspect) == 1);
486 return aspect == VK_IMAGE_ASPECT_DEPTH_BIT;
489 return aspect == VK_IMAGE_ASPECT_STENCIL_BIT;
500 VkImageAspectFlagBits aspect)
502 assert(util_bitcount(aspect) == 1);
513 assert(aspect & VK_IMAGE_ASPECT_ANY_COLOR_MASK_MESA);
517 assert(aspect & (VK_IMAGE_ASPECT_DEPTH_BIT |
522 assert(aspect & VK_IMAGE_ASPECT_DEPTH_BIT);
524 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, aspect);
527 assert(aspect & VK_IMAGE_ASPECT_STENCIL_BIT);
529 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, aspect);
532 assert(aspect & (VK_IMAGE_ASPECT_DEPTH_BIT |
539 assert(aspect & VK_IMAGE_ASPECT_DEPTH_BIT);
541 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, aspect);
544 assert(aspect & VK_IMAGE_ASPECT_STENCIL_BIT);
546 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, aspect);
559 if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
561 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, aspect);
562 } else if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT) {
564 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, aspect);
566 assert(!"Must be a depth/stencil aspect");
571 if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
573 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, aspect);
574 } else if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT) {
576 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, aspect);
578 assert(!"Must be a depth/stencil aspect");
583 assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT);
588 assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT);
589 return vk_image_layout_to_usage_flags(VK_IMAGE_LAYOUT_GENERAL, aspect);
592 assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT);
596 assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT);
600 if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT ||
601 aspect == VK_IMAGE_ASPECT_STENCIL_BIT) {
604 assert(aspect == VK_IMAGE_ASPECT_COLOR_BIT);