On Fri Nov 3 13:46:22 2023 +0000, Conor McCarthy wrote:
`ssa_data_type` is the type of the value declared with this ssa id, while `data_type` in source registers is the required type of the register, which may be different from the declaration, i.e. we can force a bitcast by changing `data_type`. For other register types we use `spirv_compiler_get_register_info()` to get the declaration type.
I'd rather introduce some kind of `bitcast` VSIR operator, rather than introducing an ad-hoc solution that only works for SSA registers and add some complexity to `vkd3d_shader_register` (not a lot of complexity, yes, but that structure is used all over the place).