From 909304e44763c58c0ebbe40068a58784ebaced7b Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 3 May 2024 00:40:22 +0200 Subject: Add Vulkan backend API --- deimos/core/allocator.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'deimos/core/allocator.h') diff --git a/deimos/core/allocator.h b/deimos/core/allocator.h index 07a214e..9e8dd87 100644 --- a/deimos/core/allocator.h +++ b/deimos/core/allocator.h @@ -116,6 +116,33 @@ public: std::forward(arg3)); } + template + constexpr gsl::owner New( + A0&& arg0, A1&& arg1, A2&& arg2, A3&& arg3, A4&& arg4, + const SourceLocation& source_location = {}) + { + return NewInner(source_location, + std::forward(arg0), + std::forward(arg1), + std::forward(arg2), + std::forward(arg3), + std::forward(arg4)); + } + + template + constexpr gsl::owner New( + A0&& arg0, A1&& arg1, A2&& arg2, A3&& arg3, A4&& arg4, A5&& arg5, + const SourceLocation& source_location = {}) + { + return NewInner(source_location, + std::forward(arg0), + std::forward(arg1), + std::forward(arg2), + std::forward(arg3), + std::forward(arg4), + std::forward(arg5)); + } + template void Delete(gsl::owner t, const SourceLocation& source_location = {}) { -- cgit