Vertex Declarations
Hi @ all, i'm new with directx and i did Vertex Tutorial, but now i'd want learn to use vertex declarations and convert my esay-triangle-program from FVF to Vtx Dcl. .. but it doesn't work?
Can I use Vtx declarations only with Vertex and Pixels Shaders?
[269 byte] By [
3Nu] at [2007-12-27]
You can use declarations with the fixed function, just bare in mind that you'll be more restricted in what you can declare though (the vertex declaration must map to an FVF).
Post the FVF and your corresponding Declaration - you've probably made a simple mistake.
Also, run your code with the debug runtimes - they're excellent at giving you hints/reasons as to why things aren't working.
hth
Jack