Skip to main content
GameDev.net gamedev.net
🔒 Locked

Custom CustomVerticies

Started by Axiverse Mar 8, 2004 at 12:11 PM 0 replies 350+ views
Original Post
Axiverse
Axiverse
How does D3D know which values are which things like: Structure A { Position Vector3; Texture1 Vector2; Texture2 Vector2; } is that not the same as: Structure A { Position Vector3; Texture2 Vector2; Texture1 Vector2; } Does it evaluate in sequential order and if so where can i find the order that values are supposed to be in?
superdeveloper
superdeveloper
It all depends on your FVF or V-Declaration.

Generally speaking, D3D will read the values sequentially, but you can manipulate them in any order using V-Shaders.

Plus, as long as your program uses teh same order throughout the implementation then things should be OK.

I.e. order this the same way:
setTexture(0, tA);
setTexture(1, tB);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.