Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.c:
return 1;
}
+char hlsl_regset_name(const struct hlsl_ctx *ctx, enum hlsl_regset regset) Note that hlsl_regset_name() requires the ctx argument because, conceptually, regsets are not to be associated to a particular letter in the assembly. It could happen that the letter depends on the shader profile.
Honestly I think we'll (eventually?) want that just to be a char/string argument to allocate_objects() [whose callers are already conditional on profile].
Edit: never mind, I guess 8/8 makes that uglier...
Anyway I think this function belongs in hlsl_codegen.c.