Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/dxil.c:
return i;
}
+static const struct sm6_value *sm6_parser_get_value_unsafe(struct sm6_parser *sm6, unsigned int idx)
That looks like what I would call `sm6_parser_get_value_safe()`, rather than unsafe: it checks for out of bounds conditions, so it is "safe" to use even if the caller didn't check itself.