microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.48k stars 393 forks source link

SDKMESH updated to load models using legacy DEC3N compressed normals #41

Closed walbourn closed 5 years ago

walbourn commented 5 years ago

There is no direct DXGI equivalent to the legacy Direct3D 9 vertex format D3DDECLTYPE_DEC3N. It's a signed 10:10:10 normalized format. Some legacy DirectX SDK samples for DX10 / DX 11 just treat it as DXGI_FORMAT_R10G10B10A2_UNORM which kind of works.

This update uses that hack for DirectXTK, but emits a warning in debug builds.