I have tried to compile some pixel shader examples. But all of them give the same error message.
"Cannot mix shader model 3.0 with earlier shader models. If either the vertex shader or pixel shader is compiled as 3.0, they must both be."
The problem seems to be that the pixel shader uses ps_3_0 and sprite batch has earlier version.
technique MyTechnique { pass { PixelShader = compile ps_3_0 Mandelbrot_PixelShader(); } }
http://blogs.msdn.com/b/shawnhar/archive/2006/12/11/sixty-fractals-per-second.aspx http://blogs.msdn.com/b/shawnhar/archive/2010/04/05/spritebatch-and-custom-shaders-in-xna-game-studio-4-0.aspx