Giovanni Mascellani (@giomasce) commented about libs/vkd3d-utils/vkd3d_utils_main.c:
"fx_2_0",
"fx_4_0",
"fx_4_1",
"fx_5_0",
- };
- profile_len = strlen(profile);
- for (i = 0; i < ARRAY_SIZE(d3dbc_profiles); ++i)
- {
size_t len = strlen(d3dbc_profiles[i]);
if (len <= profile_len && !memcmp(profile, d3dbc_profiles[i], len))
return VKD3D_SHADER_TARGET_D3D_BYTECODE;
- }
- for (i = 0; i < ARRAY_SIZE(fx_profiles); ++i)
Or even just check if `profile` starts with `"fx_"`... Sure, not a big deal.