Sign in to follow this  

Decoding shaders

This topic is 4857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Decode? What? If they're in HLSL, then the syntax is more or less the same as C, and is pretty well documented.

Are you trying to reverse engineer ASM shaders into HLSL?

I'm confused.

Share this post


Link to post
Share on other sites
Sorry. A hava incorrectly written the question.
I want to decode compiled shaders into HLSL or into asm.

P.S.: sorry for my bad English. :)

Share this post


Link to post
Share on other sites
The "Shader Binary Format" page in the SDK 2004 documentation says:
Quote:
The bitwise layout of the shader instruction stream is defined in D3d9types.h. If you want to design your own shader compiler or construction tools and you want more information about the shader token stream, refer to the DirectX 9.0 Driver Development Kit (DDK).


Anyway, the fxc, vsa and psa compilers can output asm + hex listing when you use the /Fx option. Perhaps you can use that to further understand the binary format.

Share this post


Link to post
Share on other sites

This topic is 4857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this