2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Implement tessellation shader for HLSL

This commit is contained in:
Jack Andersen
2018-06-07 15:15:46 -10:00
parent 1456026875
commit 8f9d7da3ee
17 changed files with 403 additions and 59 deletions

View File

@@ -43,11 +43,15 @@ bool CPOINode::operator<(const CPOINode& other) const
return x1c_time > other.x1c_time;
}
bool CPOINode::compare(const CPOINode& a, const CPOINode& b)
int CPOINode::compare(const void* a, const void* b)
{
if (a > b)
const CPOINode& na = *reinterpret_cast<const CPOINode*>(a);
const CPOINode& nb = *reinterpret_cast<const CPOINode*>(b);
if (na > nb)
return 1;
return (a < b);
else if (na < nb)
return -1;
return 0;
}
template <class T>