diff options
Diffstat (limited to 'Runtime/GfxDevice/d3d/VertexDeclarations.h')
-rw-r--r-- | Runtime/GfxDevice/d3d/VertexDeclarations.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/d3d/VertexDeclarations.h b/Runtime/GfxDevice/d3d/VertexDeclarations.h new file mode 100644 index 0000000..f737f5a --- /dev/null +++ b/Runtime/GfxDevice/d3d/VertexDeclarations.h @@ -0,0 +1,26 @@ +#pragma once + +#include "D3D9Includes.h" +#include "Runtime\Filters\Mesh\VertexData.h" +#include <map> + + +class VertexDeclarations +{ +public: + VertexDeclarations(); + ~VertexDeclarations(); + + IDirect3DVertexDeclaration9* GetVertexDecl( const ChannelInfoArray channels ); + void Clear(); + +private: + struct KeyType + { + bool operator < (const KeyType& rhs) const; + ChannelInfoArray channels; + }; + + typedef UNITY_MAP(kMemVertexData, KeyType, IDirect3DVertexDeclaration9*) VertexDeclMap; + VertexDeclMap m_VertexDeclMap; +}; |