You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for WebAssembly SIMD Intrinsics (v128) and Rust Integration #248
DirectXMath supports SIMD on architectures such as SSE2 but does not support WebAssembly SIMD intrinsics using the v128 type.
As a header-only library that compiles with any standard C++20 compiler, I successfully compiled it with Clang targeting WebAssembly but found no intrinsic support for WebAssembly SIMD.
I prefer DirectXMath over other libraries (such as GLM) because it is released under the MIT License, supports major SIMD instruction sets, and offers useful functions for software rendering.
My main use case for DirectXMath is software-based rendering (rasterization and ray tracing) targeting outputs such as:
Win32 (GDI)
Direct2D
HTML Canvas via WebAssembly
BMP files
Could you consider adding support for WebAssembly SIMD intrinsics using the v128 type?
Also, with Microsoft’s recent focus on Rust, are there any plans for official Rust support or bindings in DirectXMath?
Hi, I’m interested in working on WebAssembly SIMD support and/or Rust bindings for DirectXMath. Is anyone else working on this? Any tips before I dive in?
Activity
vbsp-exe commentedon May 27, 2025
I actually did port this to WebAssembly in my repository and this is pretty simple to do
walbourn commentedon May 27, 2025
Can you provide a PR as to what you had to change for reference?
RohithPariki commentedon May 28, 2025
Hi, I’m interested in working on WebAssembly SIMD support and/or Rust bindings for DirectXMath. Is anyone else working on this? Any tips before I dive in?
vbsp-exe commentedon May 28, 2025
Sure, I'd do that as soon as I can.