metal: hook up emulated 'fan' mesh draw mode.

This commit is contained in:
Alex Szpakowski
2022-01-22 12:59:09 -04:00
parent 3ecae61189
commit 62de8f62c7
6 changed files with 83 additions and 30 deletions
+6
View File
@@ -66,6 +66,12 @@ struct Range
return !(first > other.last || last < other.first);
}
void intersect(const Range &other)
{
first = std::max(first, other.first);
last = std::min(last, other.last);
}
void encapsulate(size_t index)
{
first = std::min(first, index);