diff --git a/renderdoc/api/replay/replay_enums.h b/renderdoc/api/replay/replay_enums.h index 2a6f50b44..d8991db31 100644 --- a/renderdoc/api/replay/replay_enums.h +++ b/renderdoc/api/replay/replay_enums.h @@ -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