it's exactly the same hlsl. shaders just need some adaptations. matrices, textures, constants,... have to be set up in the right way for whatever 3d-engine you use.