Jump to content
  • Advertisement
Sign in to follow this  
Carl79

vs_3_0, ps_3_0 can't be used in Effects?

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

vs_3_0, ps_3_0 can't be used in Effects? or vs_3_0, ps_3_0 can't be used in D3D9? shader code below can be compiled in "EffectEdit", but it doesn't seem to be compiled in my D3D application : texture TEXTURE; sampler Sampler = sampler_state { Texture = <TEXTURE>; }; float4 PS_Render(float2 Tex : TEXCOORD0) : COLOR { return tex2D(Sampler, Tex); } technique Render { pass Main { PixelShader = compile ps_3_0 PS_Render(); } }

Share this post


Link to post
Share on other sites
Advertisement
Hi,

Does your card support SM 3.0 ?
And when you compile an effect (hlsl) in D3D, you can get the compilation errors (the last parameter I think) It will tell you what's wrong with your .fx

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!