MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / set_anchor_struct_impl

Method set_anchor_struct_impl

framework/structure_chain_builder.h:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154template <vkb::BindingType bindingType, typename AnchorStructType>
155inline void StructureChainBuilder<bindingType, AnchorStructType>::set_anchor_struct_impl(AnchorStructType const &anchor_struct)
156{
157 void const *pNext = std::any_cast<AnchorStructType>(structure_chain.front().get())->pNext;
158 *std::any_cast<AnchorStructType>(structure_chain.front().get()) = anchor_struct;
159 std::any_cast<AnchorStructType>(structure_chain.front().get())->pNext = pNext;
160}
161
162} // namespace vkb

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected