LLVM 22.0.0git
RootSignatureValidations.h
Go to the documentation of this file.
1//===- RootSignatureValidations.h - HLSL Root Signature helpers -----------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file This file contains helper obejcts for working with HLSL Root
10/// Signatures.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_FRONTEND_HLSL_ROOTSIGNATUREVALIDATIONS_H
15#define LLVM_FRONTEND_HLSL_ROOTSIGNATUREVALIDATIONS_H
16
20
21namespace llvm {
22namespace hlsl {
23namespace rootsig {
24
25// Basic verification of RootElements
26
29LLVM_ABI bool verifyRegisterValue(uint32_t RegisterValue);
30LLVM_ABI bool verifyRegisterSpace(uint32_t RegisterSpace);
34 uint32_t FlagsVal);
35LLVM_ABI bool verifyNumDescriptors(uint32_t NumDescriptors);
38LLVM_ABI bool verifyMipLODBias(float MipLODBias);
39LLVM_ABI bool verifyMaxAnisotropy(uint32_t MaxAnisotropy);
40LLVM_ABI bool verifyComparisonFunc(uint32_t ComparisonFunc);
41LLVM_ABI bool verifyBorderColor(uint32_t BorderColor);
42LLVM_ABI bool verifyLOD(float LOD);
43
44} // namespace rootsig
45} // namespace hlsl
46} // namespace llvm
47
48#endif // LLVM_FRONTEND_HLSL_ROOTSIGNATUREVALIDATIONS_H
#define LLVM_ABI
Definition: Compiler.h:213
This file implements a coalescing interval map for small objects.
LLVM_ABI bool verifyAddress(uint32_t Address)
LLVM_ABI bool verifyRootDescriptorFlag(uint32_t Version, uint32_t FlagsVal)
LLVM_ABI bool verifyRegisterSpace(uint32_t RegisterSpace)
LLVM_ABI bool verifyComparisonFunc(uint32_t ComparisonFunc)
LLVM_ABI bool verifySamplerFilter(uint32_t Value)
LLVM_ABI bool verifyVersion(uint32_t Version)
LLVM_ABI bool verifyRootFlag(uint32_t Flags)
LLVM_ABI bool verifyLOD(float LOD)
LLVM_ABI bool verifyBorderColor(uint32_t BorderColor)
LLVM_ABI bool verifyMipLODBias(float MipLODBias)
LLVM_ABI bool verifyNumDescriptors(uint32_t NumDescriptors)
LLVM_ABI bool verifyDescriptorRangeFlag(uint32_t Version, uint32_t Type, uint32_t FlagsVal)
LLVM_ABI bool verifyMaxAnisotropy(uint32_t MaxAnisotropy)
LLVM_ABI bool verifyRangeType(uint32_t Type)
LLVM_ABI bool verifyRegisterValue(uint32_t RegisterValue)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18