[PATCH vkd3d v3 14/17] vkd3d-shader/hlsl: Move register offset functions to hlsl_codegen.c.