| //===- HLSLRootSignature.h - HLSL Root Signature helper objects -----------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| /// \file This file contains helper objects for working with HLSL Root |
| //===----------------------------------------------------------------------===// |
| #ifndef LLVM_FRONTEND_HLSL_HLSLROOTSIGNATURE_H |
| #define LLVM_FRONTEND_HLSL_HLSLROOTSIGNATURE_H |
| #include "llvm/Support/DXILABI.h" |
| // Definitions of the in-memory data layout structures |
| // Models the end of a descriptor table and stores its visibility |
| uint32_t NumClauses = 0; // The number of clauses in the table |
| // Models DTClause : CBV | SRV | UAV | Sampler, by collecting like parameters |
| using ClauseType = llvm::dxil::ResourceClass; |
| struct DescriptorTableClause { |
| // Models RootElement : DescriptorTable | DescriptorTableClause |
| using RootElement = std::variant<DescriptorTable, DescriptorTableClause>; |
| #endif // LLVM_FRONTEND_HLSL_HLSLROOTSIGNATURE_H |