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

Method set_render_context

framework/vulkan_sample.h:1608–1618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1606
1607template <vkb::BindingType bindingType>
1608inline void VulkanSample<bindingType>::set_render_context(std::unique_ptr<vkb::rendering::RenderContext<bindingType>> &&rc)
1609{
1610 if constexpr (bindingType == BindingType::Cpp)
1611 {
1612 render_context.reset(rc.release());
1613 }
1614 else
1615 {
1616 render_context.reset(reinterpret_cast<vkb::rendering::RenderContextCpp *>(rc.release()));
1617 }
1618}
1619
1620template <vkb::BindingType bindingType>
1621inline void VulkanSample<bindingType>::set_render_pipeline(std::unique_ptr<vkb::rendering::RenderPipeline<bindingType>> &&rp)

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected