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