FXC (fxc.exe) is an offline tool for compiling hlsl shaders and effects for all versions of Direct3D.
Tools for DirectX Graphics