Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

directxmath-usage

Skill by microsoft

Guides developers through integrating DirectXMath, a header-only SIMD C++ linear algebra library, into projects. It also gives an overview of the API, types and classes.

  • Score 87
  • 1.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install directxmath-usage

Built from the published package, never by AI.

git clone --depth 1 https://github.com/microsoft/DirectXMath /tmp/DirectXMath && mkdir -p ~/.claude/skills && cp -r /tmp/DirectXMath/skills/directxmath-usage ~/.claude/skills/directxmath-usage

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install directxmath-usage in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill is a guide to DirectXMath, a header-only SIMD C++ linear algebra library for games, graphics engines and other performance-sensitive applications. It covers vector, matrix and quaternion math optimized for SSE/SSE2 on x86 and x64 and ARM-NEON on ARM64. The guide describes integration through vcpkg, NuGet or the Windows SDK, and gives an overview of the API, types and classes.

It explains the load, compute and store pattern: data is loaded from storage types such as XMFLOAT3 into XMVECTOR, processed with XMVector functions, then stored back. It also covers calling conventions, 16-byte alignment rules, and the SHMath and XDSP auxiliary libraries. The skill is intended for developers who ask how to use DirectXMath, integrate it into a project, or review its available functionality.

Written from the project's SKILL.md and checked against it.

What it can do

  • Integration guidanceExplains how to add DirectXMath through vcpkg, NuGet or the Windows SDK.
  • Basic usage exampleShows loading an XMFLOAT3, normalizing it with XMVector3Normalize and storing the result.
  • Load, compute, store patternDescribes moving data between storage types and XMVECTOR or XMMATRIX for computation.
  • Calling conventionsExplains XM_CALLCONV and the FXMVECTOR and related parameter typedefs.
  • Alignment rulesExplains 16-byte alignment and the A-suffixed storage types such as XMFLOAT4A.
  • Platform support overviewLists SIMD backends for Windows and Linux on x86, x64 and ARM64 and a pure C++ fallback.
  • Auxiliary libraries overviewDescribes the SHMath spherical harmonics and XDSP digital signal processing directories.

What you need

  • Visual C++ 2017 or later, or an equivalent Clang or GCC compiler
  • C++11 or later
  • Windows or Linux

Try asking

  • How do I integrate DirectXMath into my C++ project with vcpkg?
  • Show me how to load, normalize and store an XMFLOAT3 with DirectXMath
  • Explain the 16-byte alignment rules for XMVECTOR and XMFLOAT4A

Good to know

  • SHMath includes .cpp files that must be compiled, unlike the header-only core library.
  • The Windows SDK copy of DirectXMath may not be the latest version.
  • The minimum compiler is Visual C++ 2017 (_MSC_VER >= 1910).

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/directxmath-usage/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • reference/overview.md13 KB

Alternatives to directxmath-usage

All alternatives →

Compare with ask-user-question, beads or google_tasks

directxmath-usage: common questions

What is DirectXMath used for?

The source describes DirectXMath as a SIMD C++ linear algebra library for vector, matrix and quaternion math in games, graphics engines and other performance-sensitive applications.

Which SIMD instruction sets does DirectXMath support?

It is optimized for SSE and SSE2 on x86 and x64 and ARM-NEON on ARM64. A pure C++ fallback is available using _XM_NO_INTRINSICS_.

Why does DirectXMath use separate storage types?

The source says DirectXMath separates storage types, which define memory layout, from the XMVECTOR computation type. Data is loaded into XMVECTOR or XMMATRIX, computed on, and stored back.

How do I install directxmath-usage?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is directxmath-usage free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is directxmath-usage safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to directxmath-usage?

Similar skills: ask-user-question, beads, google_tasks, recall.

directxmath-usage Install

Add to stack

Loading.