Skip to content

Commit

Permalink
layers: Add VUID-VkFramebufferCreateInfo-pAttachments-02552
Browse files Browse the repository at this point in the history
  • Loading branch information
r-potter authored and artem-lunarg committed Jul 3, 2024
1 parent 1326072 commit 90c3778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layers/core_checks/cc_render_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4571,6 +4571,12 @@ bool CoreChecks::PreCallValidateCreateFramebuffer(VkDevice device, const VkFrame
") different from 1.",
view_state->normalized_subresource_range.layerCount);
}
if ((ici.flags & VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT) != 0) {
LogObjectList objlist(pCreateInfo->renderPass, image_views[i], ivci.image);
skip |= LogError("VUID-VkFramebufferCreateInfo-pAttachments-02552", objlist, attachment_loc,
"must not be created with flag value VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT if it is "
"used as a fragment density map");
}
} else if (!enabled_features.fragmentDensityMapNonSubsampledImages &&
(ici.flags & VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT) == 0) {
LogObjectList objlist(pCreateInfo->renderPass, image_views[i], ivci.image);
Expand Down

0 comments on commit 90c3778

Please sign in to comment.