FXC /Fh option doesn't seem to work

Started by
1 comment, last by griffin77 12 years, 8 months ago
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 ?
Advertisement
Sorry about double post. Not sure what happened there. If the mods can delete one of them, that would be cool.
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

This topic is closed to new replies.

Advertisement