Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.c:
}
-struct hlsl_type *hlsl_get_type(struct hlsl_scope *scope, const char *name, bool recursive) +static const char * get_case_insensitive_typename(const char *name) +{
- static const char *const names[] =
- {
"dword",
- };
- unsigned int i;
- for (i = 0; i < ARRAY_SIZE(names); ++i)
if (!ascii_strcasecmp(names[i], name))
{
return names[i];
}
Sorry, I wasn't clear enough. I mean braces for the "for" body, not the "if" body.