PS_3_0 Error

Can someone interpret this error for me

ps_3_0 shader can only be used with vs_3_0+ shader (SWVP or HWVP), or Transformed vertices.

I wrote a pixel shader but no vertex shader because I never needed to in the past (ps_2_0 etc) Thanks



Answer this question

PS_3_0 Error

  • DaveMPlano

    I'm pretty sure it means you have to use a vs_3_0 shader to feed data into a ps_3_0 shader (or bypass all transformation and use transformed vertices (POSITIONT or D3DFVF_XYZRHW). More specifically a vs_1_x or vs_2_x shader cannot be combined with a ps_3_0 shader.

    ps_3_0 has additional requirements (e.g. full 32bit precision) that makes it incompatable with the output from a lesser vertex shader.

    Unless you're doing some fancy vertex blending via the FFP, it should be pretty trivial to implement a "pass through" vs_3_0 shader.

    hth
    Jack


  • Aleksandra

    Thank you Jack, you are exactly correct. I simply needed to implement a pass though vertex shader. Thanks
  • Ford McKinstry

    The error means your hardware can't support PS 3.0.



  • PS_3_0 Error