/**
* Return total bits needed for the pixel format per block.
*/
-static inline uint
+static inline unsigned
vk_format_get_blocksizebits(VkFormat format)
{
const struct vk_format_description *desc = vk_format_description(format);
/**
* Return bytes per block (not pixel) for the given format.
*/
-static inline uint
+static inline unsigned
vk_format_get_blocksize(VkFormat format)
{
- uint bits = vk_format_get_blocksizebits(format);
- uint bytes = bits / 8;
+ unsigned bits = vk_format_get_blocksizebits(format);
+ unsigned bytes = bits / 8;
assert(bits % 8 == 0);
assert(bytes > 0);
return bytes;
}
-static inline uint
+static inline unsigned
vk_format_get_blockwidth(VkFormat format)
{
const struct vk_format_description *desc = vk_format_description(format);
return desc->block.width;
}
-static inline uint
+static inline unsigned
vk_format_get_blockheight(VkFormat format)
{
const struct vk_format_description *desc = vk_format_description(format);
return VK_FORMAT_S8_UINT;
}
-static inline uint
+static inline unsigned
vk_format_get_component_bits(VkFormat format,
enum vk_format_colorspace colorspace,
- uint component)
+ unsigned component)
{
const struct vk_format_description *desc = vk_format_description(format);
enum vk_format_colorspace desc_colorspace;