Jump to content
  • Advertisement
Sign in to follow this  
lomateron

HLSL .fxo question

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

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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!