Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/spirv.c:
{ if (builtin) {
input_id = spirv_compiler_emit_builtin_variable(compiler, builtin, storage_class, array_size);
input_id = spirv_compiler_emit_builtin_variable_v(compiler, builtin, storage_class, &array_size, 1);
For my own education, why aren't you using `spirv_compiler_emit_builtin_variable()` (here and elsewhere)?