Thanks MDolenc,
The d3d9types header seems to contain some interesting definitions, but it's not very useful.
What do you mean by DWORD tokens, the ID of the tokens? This is of little use to me, as it is implementation specific. What I actually need is some code to translate the shader code into separate (intermediate) instructions, i.e. a list of structures filled with the opcode type, registers and their modifiers, co-issued instructions, etc. From that point on I can quite easily emulate them in software.
I know how to build such a parser myself, so if this code is not freely available, the parsing algebra itself would be sufficient. Writing it from scratch by only using the SDK documentation is quite difficult because of the loose descriptions (no details) and the many exceptions. Some instructions don't even have a precise definition of their operation.
I'm not sure wether I can find this information in any DDK. As far as I know, the shader assembler front-end is integrated in DirectX and not handled by the driver? If I'm wrong, could you please show me where I could find the reference implementation of the DirectX 9 driver?
Kind regards,
Nick