Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  
Carl79

vs_3_0, ps_3_0 can't be used in Effects?

This topic is 5164 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.

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!