microsoft / microsoft/DirectXShaderCompiler

Implement LinAlg Validation Rules

Open
#7,840 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.