Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
*
* Return the number of uint32_t's used.
*/
-int
+void
tu_pack_clear_value(const VkClearValue *val, VkFormat format, uint32_t buf[4])
{
const struct vk_format_description *desc = vk_format_description(format);
buf[buf_offset] |= tu_pack_clear_component_value(v, ch) << bit_shift;
bit_shift += ch->size;
}
-
- return buf_offset + 1;
}
static void
const struct tu_native_format *
tu6_get_native_format(VkFormat format);
-int
+void
tu_pack_clear_value(const VkClearValue *val,
VkFormat format,
uint32_t buf[4]);