Lines Matching refs:aspectMask
84 VkImageAspectFlags aspectMask) { in SetLayout() argument
85 if (imgpair.subresource.aspectMask & aspectMask) { in SetLayout()
86 imgpair.subresource.aspectMask = aspectMask; in SetLayout()
103 … IMAGE_CMD_BUF_LAYOUT_NODE &node, const VkImageAspectFlags aspectMask) { in FindLayoutVerifyNode() argument
104 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyNode()
107 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyNode()
108 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyNode()
133 const VkImageAspectFlags aspectMask) { in FindLayoutVerifyLayout() argument
134 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyLayout()
137 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyLayout()
138 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyLayout()
220 … ImageSubresourcePair imgpair, VkImageLayout &layout, const VkImageAspectFlags aspectMask) { in FindLayout() argument
221 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayout()
224 imgpair.subresource.aspectMask = aspectMask; in FindLayout()
293 VkImageSubresource sub = {image_subresource_range.aspectMask, level, layer}; in SetImageLayout()
296 …if (image_subresource_range.aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)… in SetImageLayout()
298 sub.aspectMask |= (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT); in SetImageLayout()
304 if (sub.aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) { in SetImageLayout()
305 sub.aspectMask &= ~VK_IMAGE_ASPECT_COLOR_BIT; in SetImageLayout()
306 … sub.aspectMask |= VK_IMAGE_ASPECT_PLANE_0_BIT_KHR | VK_IMAGE_ASPECT_PLANE_1_BIT_KHR; in SetImageLayout()
308 sub.aspectMask |= VK_IMAGE_ASPECT_PLANE_2_BIT_KHR; in SetImageLayout()
322 image_subresource_range.aspectMask = image_subresource_layers.aspectMask; in SetImageLayout()
493 VkImageSubresource sub = {subRange.aspectMask, level, layer}; in VerifyFramebufferAndRenderPassLayouts()
603 if (!(mem_barrier->subresourceRange.aspectMask & aspect)) { in ValidateImageAspectLayout()
781 …func_name, i, entry.index, report_data->FormatHandle(img_barrier->image).c_str(), range.aspectMask, in ValidateBarriersToImages()
816 auto const aspect_mask = img_barrier->subresourceRange.aspectMask; in ValidateBarriersToImages()
1081 VkImageAspectFlags aspect_mask = mem_barrier->subresourceRange.aspectMask; in TransitionImageLayouts()
1128 VkImageSubresource sub = {subLayers.aspectMask, subLayers.mipLevel, layer}; in VerifyImageLayout()
1548 if (range.aspectMask != VK_IMAGE_ASPECT_COLOR_BIT) { in ValidateImageAttributes()
1640 VkImageSubresource sub = {range.aspectMask, level, layer}; in VerifyClearImageLayout()
1672 VkImageSubresource sub = {range.aspectMask, level, layer}; in RecordClearImageLayout()
1756 …if (((pRanges[i].aspectMask & valid_aspects) == 0) || ((pRanges[i].aspectMask & ~valid_aspects) !=… in PreCallValidateCmdClearDepthStencilImage()
1813 if (is_multiplane && (rgn0->srcSubresource.aspectMask != rgn1->dstSubresource.aspectMask)) { in RegionIntersects()
1903 …kExtent2D divisors = FindMultiplaneExtentDivisors(img->createInfo.format, subresource->aspectMask); in GetImageSubresourceExtent()
2387 if (region.srcSubresource.aspectMask != region.dstSubresource.aspectMask) { in CopyImageMultiplaneValidation()
2390 … << region.srcSubresource.aspectMask << " and 0x" << region.dstSubresource.aspectMask << " )"; in CopyImageMultiplaneValidation()
2397 VkImageAspectFlags aspect = region.srcSubresource.aspectMask; in CopyImageMultiplaneValidation()
2422 aspect = region.dstSubresource.aspectMask; in CopyImageMultiplaneValidation()
2535 if (region.srcSubresource.aspectMask != region.dstSubresource.aspectMask) { in PreCallValidateCmdCopyImage()
2543 … if (!VerifyAspectsPresent(region.srcSubresource.aspectMask, src_image_state->createInfo.format)) { in PreCallValidateCmdCopyImage()
2552 … if (!VerifyAspectsPresent(region.dstSubresource.aspectMask, dst_image_state->createInfo.format)) { in PreCallValidateCmdCopyImage()
2829 if (0 == clear_desc->aspectMask) { in PreCallValidateCmdClearAttachments()
2832 } else if (clear_desc->aspectMask & VK_IMAGE_ASPECT_METADATA_BIT) { in PreCallValidateCmdClearAttachments()
2835 } else if (clear_desc->aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) { in PreCallValidateCmdClearAttachments()
2862 if ((clear_desc->aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT) || in PreCallValidateCmdClearAttachments()
2863 (clear_desc->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT)) { in PreCallValidateCmdClearAttachments()
2871 … if (((clear_desc->aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT) != VK_IMAGE_ASPECT_DEPTH_BIT) && in PreCallValidateCmdClearAttachments()
2872 … ((clear_desc->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT) != VK_IMAGE_ASPECT_STENCIL_BIT)) { in PreCallValidateCmdClearAttachments()
2981 if ((pRegions[i].srcSubresource.aspectMask != VK_IMAGE_ASPECT_COLOR_BIT) || in PreCallValidateCmdResolveImage()
2982 (pRegions[i].dstSubresource.aspectMask != VK_IMAGE_ASPECT_COLOR_BIT)) { in PreCallValidateCmdResolveImage()
3196 if (rgn.srcSubresource.aspectMask != rgn.dstSubresource.aspectMask) { in PreCallValidateCmdBlitImage()
3202 if (!VerifyAspectsPresent(rgn.srcSubresource.aspectMask, src_format)) { in PreCallValidateCmdBlitImage()
3207 i, rgn.srcSubresource.aspectMask, string_VkFormat(src_format)); in PreCallValidateCmdBlitImage()
3210 if (!VerifyAspectsPresent(rgn.dstSubresource.aspectMask, dst_format)) { in PreCallValidateCmdBlitImage()
3215 i, rgn.dstSubresource.aspectMask, string_VkFormat(dst_format)); in PreCallValidateCmdBlitImage()
3388 … cb_image_data.first.subresource.aspectMask, cb_image_data.first.subresource.arrayLayer, in ValidateCmdBufImageLayouts()
3770 if (subresource_layers->aspectMask & VK_IMAGE_ASPECT_METADATA_BIT) { in ValidateImageSubresourceLayers()
3776 if ((subresource_layers->aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) && in ValidateImageSubresourceLayers()
3777 … (subresource_layers->aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT))) { in ValidateImageSubresourceLayers()
4204 VkImageAspectFlags aspect_mask = pCreateInfo->subresourceRange.aspectMask; in PreCallValidateCreateImageView()
4660 std::bitset<num_bits> aspect_mask_bits(pRegions[i].imageSubresource.aspectMask); in ValidateBufferImageCopyData()
4668 …if (!VerifyAspectsPresent(pRegions[i].imageSubresource.aspectMask, image_state->createInfo.format)… in ValidateBufferImageCopyData()
4673 … function, i, pRegions[i].imageSubresource.aspectMask, image_state->createInfo.format); in ValidateBufferImageCopyData()
4816 if (pRegions[i].imageSubresource.aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT) { in ValidateBufferBounds()
4818 } else if (pRegions[i].imageSubresource.aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT) { in ValidateBufferBounds()
5045 const VkImageAspectFlags sub_aspect = pSubresource->aspectMask; in PreCallValidateGetImageSubresourceLayout()