Skip to content

Commit

Permalink
layers: Small improvement to YCbCr error message
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Feb 18, 2025
1 parent 4bebcc2 commit 88ef037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/core_checks/cc_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,8 @@ bool CoreChecks::ValidateImageUpdate(const vvl::ImageView &view_state, VkImageLa
case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE:
if (view_state.samplerConversion != VK_NULL_HANDLE) {
skip |= LogError("VUID-VkWriteDescriptorSet-descriptorType-01946", objlist, image_info_loc.dot(Field::imageView),
"is used as VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, but was created with %s",
"is used as VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, but was created with %s. (YCbCr Conversion Sampler "
"must be done with VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)",
FormatHandle(view_state.samplerConversion).c_str());
}
[[fallthrough]];
Expand Down

0 comments on commit 88ef037

Please sign in to comment.