shaders: rename local ByteAddressBuffer 'matrix' to 'mat_buf' for Windows SDK dxc.exe #265

Manually merged
github merged 1 commit from github-bot/gh-265 into gh-pr/265/base 2026-12-06 00:55:47 +00:00 AGit
Owner

@⁠860776819 on GitHub · 2026-12-05 22:20 UTC · original
860776819:pr/dxc-hlsl-matrix-keyword → main · +10 −10 · 2 files · 1 commits · merged 2026-12-05 22:51 UTC

Summary

  • Renames the local ByteAddressBuffer matrix variable to mat_buf in shaders/replace/d3c330847c597f3c.compute.hlsl and shaders/replace/ecbdc68c0c21db6f.compute.hlsl.
  • Windows SDK 10.0.22621.0 dxc.exe rejects matrix as a variable name because matrix is a reserved HLSL keyword, causing apps/larp/build.rs to fail on stock Windows SDK toolchains.
  • Pure local variable rename with zero semantic or DXIL layout change.

Testing

  • Verified cargo build --release --bin larp compiles all replacement shaders cleanly with Windows SDK 10.0.22621.0\x64\dxc.exe.
**@⁠860776819** on GitHub · 2026-12-05 22:20 UTC · [original](https://github.com/gamingwithhomie/larp/pull/265) `860776819:pr/dxc-hlsl-matrix-keyword` → `main` · +10 −10 · 2 files · 1 commits · merged 2026-12-05 22:51 UTC ### Summary - Renames the local `ByteAddressBuffer matrix` variable to `mat_buf` in `shaders/replace/d3c330847c597f3c.compute.hlsl` and `shaders/replace/ecbdc68c0c21db6f.compute.hlsl`. - Windows SDK `10.0.22621.0` `dxc.exe` rejects `matrix` as a variable name because `matrix` is a reserved HLSL keyword, causing `apps/larp/build.rs` to fail on stock Windows SDK toolchains. - Pure local variable rename with zero semantic or DXIL layout change. ### Testing - Verified `cargo build --release --bin larp` compiles all replacement shaders cleanly with Windows SDK `10.0.22621.0\x64\dxc.exe`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:21:44 +00:00
github-bot changed target branch from main to gh-pr/265/base 2026-12-05 22:54:45 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit dcdb19be80 into gh-pr/265/base 2026-12-06 00:55:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.