[PATCH 6/6] vkd3d-shader: Refactor common code between vkd3d_shader_compile() and vkd3d_shader_scan().