DirectXMath) (的新功能

DirectXMath 程式庫是以 XNA Math C++ SIMD 程式庫 2.04 版為基礎。 在這裡,我們將說明 DirectXMath 與 XNA 數學有何不同,以及 DirectXMath 版本有何不同。

版本歷程記錄

Windows 10 SDK (20348) 版本 2104DirectXMath 3.16
Windows 10 2020 年 5 月更新 SDKDirectXMath 3.14
Windows 10 2018 年 10 月更新 SDKDirectXMath 3.13
Windows 10 2018 年 4 月更新 SDK
Windows 10 Fall Creators Update SDK
DirectXMath 3.11
Windows 10 Creators Update SDKDirectXMath 3.10
Windows 10年度 SDKDirectXMath 3.09
Windows 10 SDK (2015 年 11 月) DirectXMath 3.08
Windows SDK for Windows 8.1 (Spring 2015) DirectXMath 3.07
Windows SDK for Windows 8.1DirectXMath 3.06
Windows SDK for Windows 8DirectXMath 3.03

如需詳細資訊 ,請參閱 DirectXMath 版本

DirectXMath 與 XNA 數學的差異

以下是 DirectXMath 程式庫主要與 XNA 數學程式庫的差異:

  • DirectXMath 僅 (命名空間、多載、新範本等) 。
  • 需要 C++11 標準程式庫支援 (,也就是 stdint.h 等等) 。
  • Windows RT平臺的 ARM-NEON 內建函式支援。
  • 新的色彩功能 (色彩空間轉換、.NET 色彩常數) 。
  • 系結磁片區類型 (先前在 DirectX SDK 衝突範例) 的 XNACollision 標頭中。
  • 沒有 Xbox 360 版本可供使用。 Xbox 360 XDK 會繼續寄送 XNAMath v2.x;移除 Xbox 360 特定的資料類型和函式變體。
  • 重新處理 XMVectorPermute 以改善 SSE 和 ARM-NEON 內建函式的優化。
  • XMMATRIX類型完全不透明。 若要存取 XMMATRIX的個別元素,請使用其他類型,例如 XMFLOAT4X4

DirectXMath 程式設計手冊

DirectXMath 版本