Jump to content
  • Advertisement
Sign in to follow this  
pcmaster

DX11 DX11 Dynamic Shader Linking on DX10 HW

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

Hi community,

I wonder if any of you tried this. I'm using some DX11 features but I need my engine to run on DX10 class HW (without the DX11 features, of course). Dynamic linking is one of DX11/SM5.0 features, however the DX11 Samples consider running it on even DX9 class HW (wut??? :)). I'm talking about the "DynamicShaderLinkageFX11" sample, which claims to support dynamic shader linking on older HW, however the code is little inconsistent and can't figure out how to do it. Yeah, I'd like to use the Effects framework.

Has anyone tried it? Great thanks for any input!

Share this post


Link to post
Share on other sites
Advertisement
It doesn't claim to support dynamic shader linking on older hardware. In fact the comments in the .fx file make it very clear that the downlevel shaders are statically compiled, while the SM5.0 shaders use dynamic linkage.

Share this post


Link to post
Share on other sites
Thanks for the reply Matt. So I understood it incorrectly :-)

Now, how does the static linking work here? Does this mean that the effect has to be recompiled with the correct class instances "pasted" into it?

Share this post


Link to post
Share on other sites
The compiler needs to know what class instances to use at compile time. So basically it just means that you can use the same code structure (interfaces/classes) but you can't use the dynamic linkage feature. In order to vary which instances are being used you'd have to have a unique compile for each combination. It's not any different than what you'd normally have to do anyway for dx9 or dx10. For those down levels it's merely a nicety for organization.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!