| 1137 | } |
| 1138 | |
| 1139 | void link( void * dstBase, void const * srcBase, VkBaseOutStructure * dst, VkBaseInStructure const * src ) |
| 1140 | { |
| 1141 | while ( src->pNext ) |
| 1142 | { |
| 1143 | std::ptrdiff_t offset = reinterpret_cast<char const *>( src->pNext ) - reinterpret_cast<char const *>( srcBase ); |
| 1144 | dst->pNext = reinterpret_cast<VkBaseOutStructure *>( reinterpret_cast<char *>( dstBase ) + offset ); |
| 1145 | dst = dst->pNext; |
| 1146 | src = src->pNext; |
| 1147 | } |
| 1148 | dst->pNext = nullptr; |
| 1149 | } |
| 1150 | |
| 1151 | void unlink( VkBaseOutStructure const * pNext ) VULKAN_HPP_NOEXCEPT |
| 1152 | { |