(360/HLSL) refactor shader_hlsl.c