 
            On Fri, 9 Jul 2021 at 07:47, Conor McCarthy cmccarthy@codeweavers.com wrote:
+#define RANGE_STRING_SIZE 24
+static void register_range_format_string(char range_str[RANGE_STRING_SIZE],
const struct vkd3d_shader_register_range *range)+{
- if (range->last != ~0u)
sprintf(range_str, "[%u:%u]", range->first, range->last);- else
sprintf(range_str, "[%u:*]", range->first);+}
I'd prefer building that on top of the string buffer cache.