13#ifndef LLVM_FRONTEND_HLSL_SEMANTICSIGNATUREPACKING_H
14#define LLVM_FRONTEND_HLSL_SEMANTICSIGNATUREPACKING_H
37 : Kind(Kind), ElementIndex(ElementIndex) {}
50 unsigned ElementIndex;
Base class for user error types.
Tagged union holding either a T or a Error.
Represent a mutable reference to an array (0 or more elements consecutively in memory),...
SignaturePackingError(ErrorKind Kind, unsigned ElementIndex)
unsigned getElementIndex() const
ErrorKind getErrorKind() const
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
This class implements an extremely fast bulk output stream that can only output to a stream.
LLVM_ABI Expected< unsigned > packSignatureStacked(MutableArrayRef< SemanticSignatureElement > Elements, Triple::EnvironmentType ShaderStage, IOType IOTy)
Packs eligible signature elements into consecutive rows.
static constexpr unsigned MaxSignatureRows
static constexpr unsigned MaxSignatureCols
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...