@@ -29,11 +29,11 @@ struct RootParameterInfo {
2929 : Header(H), Location(L) {}
3030};
3131
32- using RootDescriptor = std::variant<dxbc::RST0::v0::RootDescriptor*,
33- dxbc::RST0::v1::RootDescriptor*>;
34- using ParametersView =
35- std::variant< const dxbc::RootConstants*, const dxbc::RST0::v0::RootDescriptor*,
36- const dxbc::RST0::v1::RootDescriptor*>;
32+ using RootDescriptor = std::variant<dxbc::RST0::v0::RootDescriptor *,
33+ dxbc::RST0::v1::RootDescriptor *>;
34+ using ParametersView = std::variant< const dxbc::RootConstants *,
35+ const dxbc::RST0::v0::RootDescriptor *,
36+ const dxbc::RST0::v1::RootDescriptor *>;
3737struct RootParametersContainer {
3838 SmallVector<RootParameterInfo> ParametersInfo;
3939
@@ -69,10 +69,10 @@ struct RootParametersContainer {
6969 case llvm::to_underlying (dxbc::RootParameterType::SRV):
7070 case llvm::to_underlying (dxbc::RootParameterType::UAV):
7171 RootDescriptor VersionedParam = Descriptors[H->Location ];
72- if (std::holds_alternative<dxbc::RST0::v0::RootDescriptor*>(
72+ if (std::holds_alternative<dxbc::RST0::v0::RootDescriptor *>(
7373 VersionedParam))
74- return std::get<dxbc::RST0::v0::RootDescriptor*>(VersionedParam);
75- return std::get<dxbc::RST0::v1::RootDescriptor*>(VersionedParam);
74+ return std::get<dxbc::RST0::v0::RootDescriptor *>(VersionedParam);
75+ return std::get<dxbc::RST0::v1::RootDescriptor *>(VersionedParam);
7676 }
7777
7878 return std::nullopt ;
@@ -86,11 +86,6 @@ struct RootParametersContainer {
8686 SmallVector<RootParameterInfo>::const_iterator end () const {
8787 return ParametersInfo.end ();
8888 }
89-
90- llvm::iterator_range<SmallVector<RootParameterInfo>::const_iterator>
91- getInfo () const {
92- return llvm::make_range (begin (), end ());
93- }
9489};
9590struct RootSignatureDesc {
9691
0 commit comments