Jump to content
  • Advertisement
Sign in to follow this  
Keba

Vertexdeclarations

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

Hello, Is vertexdeclataionens software depended or hardware depended. To clarify, if i got an old GFX card, but DX9 would this support VertexDeclaratons, or only FVF? i mean vertexdeclarations isn't hardware depended rather software depended(which version on DirectX) right? could i create a program that creates a VB with VertexDeclarations and then use it to render(no shader effect or something like that) with an old GFX card? by old GFX card, meaning something like GF4MX....a card thats dosen't support shaders... thanks

Share this post


Link to post
Share on other sites
Advertisement
I think vertex declarations have existed since Vertex Buffers have existed. I don't think you have to worry about it at all these days.

I could easily be wrong though.

ace

Share this post


Link to post
Share on other sites
god you were fast!
that is what i call a fast answer :P...almost under a minut :D
so the VertexDeclarations isn't bounded to shaders in any way?

Share this post


Link to post
Share on other sites
(1) Vertex declarations have existed since D3D9. In D3D8 and below, FVF's (flexible vertex formats) are used exclusively. Vertex decls were added because they allow a lot more control when it comes to informing D3D of your vertex structure. And since shaders are becoming more and more widespread, we need that.

(2) Vertex decls are a software-side thing. Any DX9 app can use them, regardless of the hardware (including GF4MX 420-440).

(3) A vertex declaration informs D3D of your vertex structure and format. It uses this to make sure that the shader input matches your structure. Vertex decls are bound to shaders, because the vertex format must match the input of the vertex shader.

Share this post


Link to post
Share on other sites
Oh, woops, was confuddled between the declaration and the vertex struct and all that gubbins.

Just woken up,

ace

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!