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.
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-usageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/DirectXMath /tmp/DirectXMath && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DirectXMath/skills/directxmath-usage ~/.gemini/antigravity-cli/skills/directxmath-usageAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
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.
