Serialisation for MTL::IndexType

This commit is contained in:
Jake Turner
2023-04-22 06:56:09 +01:00
committed by Baldur Karlsson
parent bd545cb9b6
commit 6dbb7a3a86
2 changed files with 12 additions and 0 deletions
@@ -1125,6 +1125,17 @@ rdcstr DoStringise(const MTL::CullMode &el)
END_ENUM_STRINGISE();
};
template <>
rdcstr DoStringise(const MTL::IndexType &el)
{
BEGIN_ENUM_STRINGISE(MTL::IndexType)
{
MTL_STRINGISE_ENUM(IndexTypeUInt16);
MTL_STRINGISE_ENUM(IndexTypeUInt32);
}
END_ENUM_STRINGISE()
}
template <>
rdcstr DoStringise(const MetalResourceType &el)
{
+1
View File
@@ -159,6 +159,7 @@ MTL_DECLARE_REFLECTION_TYPE(ArgumentBuffersTier);
MTL_DECLARE_REFLECTION_TYPE(DepthClipMode);
MTL_DECLARE_REFLECTION_TYPE(TriangleFillMode);
MTL_DECLARE_REFLECTION_TYPE(CullMode);
MTL_DECLARE_REFLECTION_TYPE(IndexType);
template <>
inline rdcliteral TypeName<NS::Range>()