Jump to content
  • Advertisement
Sign in to follow this  
wswqwps

Difference between ShaderModel versions

This topic is 3652 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, I am dealing with some code and DX9 throw a exception when I set the runtime to debug version. [Direct3D9: (ERROR) :ps_3_0 shader can only be used with vs_3_0+ shader (SWVP or HWVP), or transformed vertices.] I found in a technique a vs_2_0 shader works with a px_3_0 shader. I think there are some potential problems but I do not know what they are. Who can tell me? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Shader model 3 doesn't work with other shader models. You can mix and match fixed function, SM1 and SM2, but not SM3.

Share this post


Link to post
Share on other sites
Given that SM3 is bigger and better than SM2 you'll almost certainly be fine just changing the technique definition from vs_2_0 up to vs_3_0. Some tools and drivers may allow mismatches but internally they're probably promoting the SM2 part to SM3 as they assume thats what you meant...

hth
Jack

Share this post


Link to post
Share on other sites
If you are just learning about shaders the main difference between SM2 and SM3 is the instruction slot limit. In SM2 the instruction slot is only 64 instructions. In SM3 the instruction slot limit is 512.

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!