Restore IsStrip helper that should not have been removed

This commit is contained in:
baldurk
2022-09-23 11:35:52 +01:00
parent b3d7d5f5fd
commit c19806ad2f
+12
View File
@@ -2245,6 +2245,18 @@ constexpr inline uint32_t PatchList_Count(Topology topology)
: uint32_t(topology) - uint32_t(Topology::PatchList_1CPs) + 1;
}
DOCUMENT(R"(Check whether or not this is a strip-type topology.
:param Topology topology: The topology to check.
:return: ``True`` if it describes a strip topology, ``False`` for a list.
:rtype: bool
)");
constexpr inline bool IsStrip(Topology topology)
{
return topology == Topology::LineStrip || topology == Topology::TriangleStrip ||
topology == Topology::LineStrip_Adj || topology == Topology::TriangleStrip_Adj;
}
DOCUMENT(R"(The stage in a pipeline where a shader runs
.. data:: Vertex