Jump to content
  • Advertisement
Sign in to follow this  
jschaedler

hlsl assistance

This topic is 4114 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 writing a shader with FX composer that uses multiple passes. If i keep my technique 1 pass the shader compiles fine, but if I add a second pass in the shader i get a compiler error saying that "Input semantic POSITION is invalid". It makes absolutely no sense to me. I am simply using the same vertex shader both passes and applying a 2nd pixel shader on the 2nd pass. Can anyone possibly tell me why this error might be occurring? any ideas/advice would be appreciated!

Share this post


Link to post
Share on other sites
Advertisement
Nevermind, i had no idea that you had to pass position in as a texcoord to use it in the pixel shader and was trying to access the position that was passed out of the vertex shader directly :P

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!