diff options
author | Finn Plummer <finn.c.plum@gmail.com> | 2025-06-05 10:18:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-05 10:18:49 -0700 |
commit | b3ed4288bd2a7e7f4d0494793b64c81df6e93f95 (patch) | |
tree | 4dce79b3c207ac73b28cbd088ff8be4bcc139187 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7ce315d14aa5c084574cc3a17552625f322e1d16 (diff) | |
download | llvm-b3ed4288bd2a7e7f4d0494793b64c81df6e93f95.zip llvm-b3ed4288bd2a7e7f4d0494793b64c81df6e93f95.tar.gz llvm-b3ed4288bd2a7e7f4d0494793b64c81df6e93f95.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions