From 2169a0849e3df4e2133b728dec67d3b16bd30263 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Fri, 29 Sep 2023 10:56:21 -0600 Subject: [PATCH] Fix doc for vkuFormatIsXChromaSubsampled Now the documentation matches the implementation. --- include/vulkan/utility/vk_format_utils.h | 2 +- scripts/generators/format_utils_generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vulkan/utility/vk_format_utils.h b/include/vulkan/utility/vk_format_utils.h index 9af341c..fb3456d 100644 --- a/include/vulkan/utility/vk_format_utils.h +++ b/include/vulkan/utility/vk_format_utils.h @@ -227,7 +227,7 @@ inline bool vkuFormatIsPacked(VkFormat format); inline bool vkuFormatRequiresYcbcrConversion(VkFormat format); // Returns whether a VkFormat is XChromaSubsampled -// This corresponds to formats with _422 in their name +// This corresponds to formats with _422 or 420 in their name inline bool vkuFormatIsXChromaSubsampled(VkFormat format); // Returns whether a VkFormat is YChromaSubsampled diff --git a/scripts/generators/format_utils_generator.py b/scripts/generators/format_utils_generator.py index c65463d..7fe0aab 100644 --- a/scripts/generators/format_utils_generator.py +++ b/scripts/generators/format_utils_generator.py @@ -178,7 +178,7 @@ inline bool vkuFormatIsPacked(VkFormat format); inline bool vkuFormatRequiresYcbcrConversion(VkFormat format); // Returns whether a VkFormat is XChromaSubsampled -// This corresponds to formats with _422 in their name +// This corresponds to formats with _422 or 420 in their name inline bool vkuFormatIsXChromaSubsampled(VkFormat format); // Returns whether a VkFormat is YChromaSubsampled