# redorav/hlslpp

Math library using HLSL syntax with multiplatform SIMD support

Repository: https://github.com/redorav/hlslpp
Canonical: https://ross.abutalabs.com/products/hlslpp
Language: C++
License: MIT
License Family: permissive
Topics: hlsl, math, cpp, shaders, game-development, sse, sse41, neon, vector, matrix, quaternion, c-plus-plus-11, avx, math-library, simd, wasm, arm, arm64
Last push: 2026-07-27T11:58:19+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 60, longevity 100
- inputs: {"age_days": 3507, "days_push": 37, "days_rel": 109, "gap_med": 154, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1145, forks 71 (observed 2026-08-28T04:03:45.496515+00:00)

## What it is
A header-only C++ math library that mirrors HLSL shading language syntax, including vectors, matrices, quaternions, swizzling, and data packing. It uses SIMD (SSE/AVX, NEON, WASM) for fast, portable math aimed primarily at game developers bridging C++ and shader code.

## Use cases
- write C++ math code with HLSL shader syntax
- fast SIMD vector and matrix math in C++
- share math code between C++ engine and shaders
- cross-platform SIMD math for ARM and x86
- quaternion and matrix transformations in games
- pack and unpack color data efficiently

## When to choose
- you want HLSL-compatible math syntax in C++ for game or graphics code
- you need portable SIMD-accelerated math across x86, ARM, and WASM
- you want a header-only dependency with no build step

## When to avoid
- you need a full game engine or rendering framework, not just math
- your project targets platforms without SIMD extensions or anonymous-union C++ support
- you prefer a general-purpose linear algebra library with non-HLSL conventions

## Facets
- artifact type: library
- maturity: active
- function: math, graphics, simulation
- domain: graphics, cross-platform
- platform: cpp, windows, wasm, game-engine
- tags: hlsl, simd, header-only, sse, avx, neon, vector-math, quaternion, matrix, shaders, swizzling, game-development, linux, macos, android, ios

## Member repositories
- redorav/hlslpp (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:45.496515+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:34:40.613954+00:00, confidence not recorded.
  - readme: https://github.com/redorav/hlslpp (fetched 2026-08-28T04:03:45.496515+00:00, sha 66e6126c775c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
