scripts/dx2cg
2022-08-10 20:06:02 -04:00
..
disassembler.py Add dx2cg 2022-08-10 19:47:13 -04:00
main.py Add dx2cg 2022-08-10 19:47:13 -04:00
README.md Update README 2022-08-10 20:06:02 -04:00
swapper.py Add dx2cg 2022-08-10 19:47:13 -04:00

dx2cg

Tools for converting d3d9 shader assembly to HLSL/Cg.

  • disassembler.py: Takes in d3d9 assembly and gives back the HLSL equivalent.
  • swapper.py: Searches a shader file for d3d9 assembly and calls the disassembler to replace it with HLSL.
  • main.py: Executes the swapper on every file in a path, writing the changes to new files.

Known issues

  • Only vertex shaders with profile vs_1_1 are supported
  • No fragment shaders are supported yet
  • Only one subprogram in a subshader will be converted (for now)
  • Only a limited set of instructions (those used by FF and Unity 2.6) are supported