summaryrefslogtreecommitdiff
path: root/deimos/core/allocator.h
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-12 23:57:24 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-12 23:57:24 +0200
commit8279acc1a4754bedaad0ba8bf00541c7b2a043e9 (patch)
tree586a05c6b4e2338d621d78d9107090d5b587c683 /deimos/core/allocator.h
parent55bc67bf7989acfeadf0233a4bdd5660e8f0bb69 (diff)
Swapchain creation
Diffstat (limited to 'deimos/core/allocator.h')
-rw-r--r--deimos/core/allocator.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/deimos/core/allocator.h b/deimos/core/allocator.h
index 9e8dd87..f6adea2 100644
--- a/deimos/core/allocator.h
+++ b/deimos/core/allocator.h
@@ -143,6 +143,21 @@ public:
std::forward<A5>(arg5));
}
+ template<typename T, typename A0, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
+ constexpr gsl::owner<T*> New(
+ A0&& arg0, A1&& arg1, A2&& arg2, A3&& arg3, A4&& arg4, A5&& arg5, A6&& arg6,
+ const SourceLocation& source_location = {})
+ {
+ return NewInner<T>(source_location,
+ std::forward<A0>(arg0),
+ std::forward<A1>(arg1),
+ std::forward<A2>(arg2),
+ std::forward<A3>(arg3),
+ std::forward<A4>(arg4),
+ std::forward<A5>(arg5),
+ std::forward<A6>(arg6));
+ }
+
template<typename T>
void Delete(gsl::owner<T*> t, const SourceLocation& source_location = {})
{