Jump to content
  • Advertisement
Sign in to follow this  
Quat

d3d9 Vertex Inputs

This topic is 3796 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 have a shader that emulates the fixed pipe for a simple project. I have flags to disable lighting/texturing. The vertex shader inputs, position, normal, texture coordinates. Can I use the shader to draw from vertex buffers that only have position and normal info? Obviously in this case the texture coordinate parameter in the vertex shader won't be valid, but I will have a flag to disable the texture sampling, so this shouldn't affect the output.

Share this post


Link to post
Share on other sites
Advertisement
Run your shader via the fxc.exe command-line to see what assembly is generated. If you output to colour-coded HTML it should draw a summary at the start of each shader indicating the constant layout and pipeline mapping.

I would hope that the compiler will remove the input TC's if it also removes any code that might depend on them, but I'd double-check to be sure.

hth
Jack

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!