* SOFTWARE.
*/
-/* clang-format off */
#ifndef VK_FORMAT_H
#define VK_FORMAT_H
#include "util/u_endian.h"
-static inline bool
-vk_format_is_alpha_on_msb(VkFormat vk_format)
+static inline bool vk_format_is_alpha_on_msb(VkFormat vk_format)
{
const struct util_format_description *desc =
vk_format_description(vk_format);
return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB ||
desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) &&
#if UTIL_ARCH_BIG_ENDIAN
- desc->swizzle[3] == PIPE_SWIZZLE_X;
+ desc->swizzle[3] == PIPE_SWIZZLE_X;
#else
- desc->swizzle[3] == PIPE_SWIZZLE_W;
+ desc->swizzle[3] == PIPE_SWIZZLE_W;
#endif
}
-static inline uint
-vk_format_get_channel_width(VkFormat vk_format, uint32_t channel)
+static inline uint vk_format_get_channel_width(VkFormat vk_format,
+ uint32_t channel)
{
const struct util_format_description *desc =
vk_format_description(vk_format);
return desc->channel[channel].size;
}
-static inline bool
-vk_format_has_32bit_component(VkFormat vk_format)
+static inline bool vk_format_has_32bit_component(VkFormat vk_format)
{
const struct util_format_description *desc =
vk_format_description(vk_format);
component);
}
-static inline bool
-vk_format_is_normalized(VkFormat vk_format)
+static inline bool vk_format_is_normalized(VkFormat vk_format)
{
const struct util_format_description *desc =
vk_format_description(vk_format);