Added DoStringise() for DXIL::Type::ScalarKind

This commit is contained in:
Jake Turner
2024-07-03 10:50:21 +01:00
parent 67777f16af
commit b3236c0fbe
2 changed files with 13 additions and 0 deletions
@@ -1696,3 +1696,4 @@ DECLARE_STRINGISE_TYPE(DXIL::AtomicBinOpCode);
DECLARE_STRINGISE_TYPE(DXIL::Operation);
DECLARE_STRINGISE_TYPE(DXIL::DXOp);
DECLARE_STRINGISE_TYPE(DXIL::Type::TypeKind);
DECLARE_STRINGISE_TYPE(DXIL::Type::ScalarKind);
@@ -509,3 +509,15 @@ rdcstr DoStringise(const DXIL::Type::TypeKind &el)
}
END_ENUM_STRINGISE();
}
template <>
rdcstr DoStringise(const DXIL::Type::ScalarKind &el)
{
BEGIN_ENUM_STRINGISE(DXIL::Type::ScalarKind);
{
STRINGISE_ENUM_CLASS(Void);
STRINGISE_ENUM_CLASS(Float);
STRINGISE_ENUM_CLASS(Int);
}
END_ENUM_STRINGISE();
}