Jump to content
  • Advertisement
Sign in to follow this  
khancoder

Getting E_NOTIMPL while loading Effect file

This topic is 2646 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

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();
}
}

Share this post


Link to post
Share on other sites
Advertisement
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!