Sign in to follow this  
wswqwps

Difference between ShaderModel versions

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
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

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