mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
turnip: add vk_format_is_snorm/is_float
Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3783>
This commit is contained in:
parent
51fe52d2fd
commit
de6967488a
1 changed files with 12 additions and 0 deletions
|
|
@ -243,6 +243,18 @@ vk_format_is_srgb(VkFormat format)
|
|||
return util_format_is_srgb(vk_format_to_pipe_format(format));
|
||||
}
|
||||
|
||||
static inline bool
|
||||
vk_format_is_snorm(VkFormat format)
|
||||
{
|
||||
return util_format_is_snorm(vk_format_to_pipe_format(format));
|
||||
}
|
||||
|
||||
static inline bool
|
||||
vk_format_is_float(VkFormat format)
|
||||
{
|
||||
return util_format_is_float(vk_format_to_pipe_format(format));
|
||||
}
|
||||
|
||||
static inline VkFormat
|
||||
vk_format_no_srgb(VkFormat format)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue