diff --git a/object.hpp b/object.hpp index 9d33c4e..805c27d 100644 --- a/object.hpp +++ b/object.hpp @@ -200,6 +200,16 @@ namespace cruft::vk { }; + //------------------------------------------------------------------------- + template + auto + make_owned (native_t _native, OwnerT &_owner) + { + return owned_ptr { + SelfT (_native), _owner + }; + } + //------------------------------------------------------------------------- template