mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
vulkan: Introduce vk_format_is_block_compressed function
Signed-off-by: John Brooks <john@fastquake.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17970>
This commit is contained in:
parent
ef6a8a9a6f
commit
88401e031b
1 changed files with 6 additions and 0 deletions
|
|
@ -159,6 +159,12 @@ vk_format_is_compressed(VkFormat format)
|
|||
return vk_format_get_blockwidth(format) > 1;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
vk_format_is_block_compressed(VkFormat format)
|
||||
{
|
||||
return util_format_is_compressed(vk_format_to_pipe_format(format));
|
||||
}
|
||||
|
||||
static inline const struct util_format_description *
|
||||
vk_format_description(VkFormat format)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue