What's wrong with this efect?

I took below effect code from a tutorial that I was recommended, gmjosack on GitHub. First test worked, after installing some DirectX libraries and compiling for a different version of DirectX. now what goes wrong, do I need different syntax for this version? Using MonoGame 3.6 and VS2017. Any help appreciated, as well as links to good tutorials on shaders in 2D. Thanks.

sampler s0;

float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
{
float4 color = tex2D(s0, coords);
return color;
}

technique Technique1
{
pass Pass1
{
PixelShader = compile ps_4_0_level_9_1 PixelShaderFunction();
}
}

use PixelShader = compile ps_5_0 PixelShaderFunction();

this is for the directx11 renderpath that the Monogame Dx version is using.

Hmm… doesn’t work. ‘Missing parameter’ error. Maybe I broke things by installing an older DirectX SDK. Net ps_4_0_level_9_1 now works. :slight_smile:

Will try putting the correct DirectX on the machine again and try ps_5_0.