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