Add SPU memory allocation

This commit is contained in:
Jaby
2024-08-07 23:01:43 -05:00
parent ea996faf75
commit f686f01d40
7 changed files with 181 additions and 4 deletions

View File

@@ -34,4 +34,14 @@ namespace JabyEngine {
}
return result;
}
template<typename T>
static constexpr T min_of(T a, T b) {
return (a < b) ? a : b;
}
template<typename T>
static constexpr T max_of(T a, T b) {
return (a > b) ? a : b;
}
}