microsoft / DirectXMesh

DirectXMesh geometry processing library
https://walbourn.github.io/directxmesh/
MIT License
786 stars 152 forks source link

Direct3D 9 FVF helpers #57

Closed walbourn closed 3 years ago

walbourn commented 3 years ago

The original D3DX9 library contains these functions for working with Direct3D 9 'fixed-function' flexible vertex formats (FVF):

D3DXGetFVFVertexSize
D3DXGetDeclVertexSize
D3DXGetDeclLength
D3DXDeclaratorFromFVF
D3DXFVFFromDeclarator

A DX11 & DX12 version of D3DXDeclaratorFromFVF could be useful in DirectXMesh

Could also provide a simple header in Utility for FVFs that implements the Direct3D 9 original functionality for these five functions.