Sign in to follow this  

FXC /Fh option doesn't seem to work

This topic is 2322 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):
[quote]/Fh <[i]file[/i]>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

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