From c19806ad2ffba611a2a9d76237ea1bc96e08bb54 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Sep 2022 11:35:52 +0100 Subject: [PATCH] Restore IsStrip helper that should not have been removed --- renderdoc/api/replay/replay_enums.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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