[all-commits] [llvm/llvm-project] b3ed42: [HLSL][RootSignature] Metadata generation of Stati...

Finn Plummer via All-commits all-commits at lists.llvm.org
Thu Jun 5 10:19:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3ed4288bd2a7e7f4d0494793b64c81df6e93f95
      https://github.com/llvm/llvm-project/commit/b3ed4288bd2a7e7f4d0494793b64c81df6e93f95
  Author: Finn Plummer <finn.c.plum at gmail.com>
  Date:   2025-06-05 (Thu, 05 Jun 2025)

  Changed paths:
    M clang/test/CodeGenHLSL/RootSignature.hlsl
    M llvm/include/llvm/Frontend/HLSL/HLSLRootSignatureUtils.h
    M llvm/lib/Frontend/HLSL/HLSLRootSignatureUtils.cpp

  Log Message:
  -----------
  [HLSL][RootSignature] Metadata generation of StaticSampler (#142642)

Implements metadata generation of a Root Signature from its in-memory
representation. It follows the same style as:
https://github.com/llvm/llvm-project/pull/139633.

This pr handles `StaticSamplers`. It also handles converting the else-if
chain into a `std::visit` to allow for future compiler warnings when
adding additional `RootElement` variants.

The metadata follows the format described
[here](https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md#metadata-schema).

- Implement `BuildStaticSampler` into HLSLRootSignature.h
- Add sample testcases demonstrating functionality

Note: there is no validation of metadata nodes as the
`llvm::hlsl::rootsig::RootElement` that generates it will have already
been validated.

Resolves https://github.com/llvm/llvm-project/issues/126586



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list