mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Restore IsStrip helper that should not have been removed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user