microsoft / microsoft/DirectXShaderCompiler
Implement LinAlg Validation Rules
@V-FEXrt is already working on this.
Since Jul 21, 2026.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
The children issues are sourced from the spec, however there are likely more validation rules that should be added.
The children issues of this one specifically focus on DXIL validation. Because of this rules should be implemented in lib/DxilValidation/DxilValidation.cpp with tests written in tools/clang/test/LitDXILValidation/LinAlgMatrix/. https://github.com/microsoft/DirectXShaderCompiler/pull/8588 is a (larger) example of what this looks like
For all the children issues covering a builtin there are common validation that should be ran such as
- Are the dims acceptable for the operation
- Is the matrix use, scope, and component acceptable for the operation
It's not needed to check if the operation is allowed in the shader type as that verified elsewhere
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.