• Advertisement
Sign in to follow this  

HLSL .fxo question

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

do I have to build a new .fxo every time I run for the first time my app in a new PC?

Share this post


Link to post
Share on other sites
Advertisement

No, you don't, you can use the same file. Why do you think you have to? Doesn't it work when you just transfer the file?

Share this post


Link to post
Share on other sites

I used to think the same since i've played battlefield 2, they compiled shaders when a map was first loaded.

But then I found out that they recompile platform specific portions of an ubershader or something.

 

Normally, if your source .fx file doesn't change (and contain no macros that are platform specific), then you don't have to recompile the fxo.

Share this post


Link to post
Share on other sites

Yea, that's true - there can be #define macros that affect the final compiled shader, depending on something what may change from computer to computer (graphics card type) or even user to user (graphics settings).

But since you are asking about your own application, you are the one who will know this. Check your shaders, if the code cannot change anyhow before compilation, then you can simply reuse the fxo file.

Share this post


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

  • Advertisement