diff --git a/snippets/StructureChain.hpp b/snippets/StructureChain.hpp index f21ef99..5b5e467 100644 --- a/snippets/StructureChain.hpp +++ b/snippets/StructureChain.hpp @@ -127,6 +127,17 @@ return std::tie( get(), get(), get()... ); } + // assign a complete structure to the StructureChain without modifying the chaining + template >::type, size_t Which = 0> + StructureChain & assign( const T & rhs ) VULKAN_HPP_NOEXCEPT + { + T & lhs = get(); + void * pNext = lhs.pNext; + lhs = rhs; + lhs.pNext = pNext; + return *this; + } + template typename std::enable_if< std::is_same>::type>::value &&