diff --git a/src/amd/vulkan/vk_format.h b/src/amd/vulkan/vk_format.h index b46093c56b7..29db70e7261 100644 --- a/src/amd/vulkan/vk_format.h +++ b/src/amd/vulkan/vk_format.h @@ -30,6 +30,7 @@ #include #include #include +#include enum vk_format_layout { /** @@ -436,6 +437,24 @@ vk_format_is_int(VkFormat format) return channel >= 0 && desc->channel[channel].pure_integer; } +static inline bool +vk_format_is_uint(VkFormat format) +{ + return util_format_is_pure_uint(vk_format_to_pipe_format(format)); +} + +static inline bool +vk_format_is_sint(VkFormat format) +{ + return util_format_is_pure_sint(vk_format_to_pipe_format(format)); +} + +static inline bool +vk_format_is_unorm(VkFormat format) +{ + return util_format_is_unorm(vk_format_to_pipe_format(format)); +} + static inline bool vk_format_is_srgb(VkFormat format) {