• Advertisement
Sign in to follow this  

FXC /Fh option doesn't seem to work

This topic is 2392 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

I'm trying to precompile my FX file to avoid long compile times at runtime. I'm trying to embed the compiled output in a C header file (as this would make the loading process MUCH easier as I wouldn't have to mess around with loading asset files at runtime).

According to the FXC docs the /Fh option should do this (at least as I read the docs):
/Fh <file>Output header file containing object code.[/quote]

But for me this has exactly the same results as /Fc, e.g. output an assembly code listing.

My command line looks like this (PS is the entry point to my pixel shader):

fxc /FhFoo.h /EPS /Tps_4_0 Foo.fx


Any ideas ? Anyone else got the /Fh option to output a C friendly header file ? Or am just misreading the docs ?

Share this post


Link to post
Share on other sites
Advertisement
Sorry about double post. Not sure what happened there. If the mods can delete one of them, that would be cool.

Share this post


Link to post
Share on other sites
Derp....... user error :)

It WAS outputing a C-friendly header, but it was embedding the assembly listing at the top surrounded by #if 0...#endif

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement