Getting E_NOTIMPL while loading Effect file

Started by
-1 comments, last by khancoder 12 years, 7 months ago
i am getting Error "E_NOTIMPL" while i try to load effect file. I am new to effect file to could not found the problem what is problem in my effect file. I am using DirectX 9.0. Follow are the code of my shader file. I have tried to compile this effect file with nVidia FX Composer 2.5 and it doesn't give any error.


sampler2D input : register(s0);

float left : register(c0);
float4 transform(float2 uv : TEXCOORD) : COLOR
{
float right = 1 - left;
float2 tuv = float2((uv.x - left) / (right - left), uv.y);

float tx = tuv.x;
if (tx > 0.5)
{
tx = 1 - tx;
}
float top = left * tx;
float bottom = 1 - top;
if (uv.y >= top && uv.y <= bottom)
{
float ty = lerp(0, 1, (tuv.y - top) / (bottom - top));
return tex2D(input, float2(tuv.x, ty));
}
return 0;
}

float4 main(float2 uv : TEXCOORD) : COLOR
{
float right = 1 - left;
if(uv.x > left && uv.x < right)
{
return transform(uv);
}

return 0;
}

technique TransformTexture {
pass P0 {
PixelShader = compile ps_2_0 main();
}
}

This topic is closed to new replies.

Advertisement