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

Method update

framework/vulkan_sample.h:1656–1686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654
1655 gui->update(delta_time);
1656 }
1657}
1658
1659template <vkb::BindingType bindingType>
1660inline void VulkanSample<bindingType>::update_scene(float delta_time)
1661{
1662 if (scene)
1663 {
1664 // Update scripts
1665 if (scene->has_component<sg::Script>())
1666 {
1667 auto scripts = scene->get_components<sg::Script>();
1668
1669 for (auto script : scripts)
1670 {
1671 script->update(delta_time);
1672 }
1673 }
1674
1675 // Update animations
1676 if (scene->has_component<sg::Animation>())
1677 {
1678 auto animations = scene->get_components<sg::Animation>();
1679
1680 for (auto animation : animations)
1681 {
1682 animation->update(delta_time);
1683 }
1684 }
1685 }
1686}
1687
1688template <vkb::BindingType bindingType>
1689inline void VulkanSample<bindingType>::update_stats(float delta_time)

Callers 3

update_guiMethod · 0.45
update_sceneMethod · 0.45
update_statsMethod · 0.45

Calls 6

endMethod · 0.80
beginMethod · 0.45
begin_samplingMethod · 0.45
get_render_targetMethod · 0.45
end_samplingMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected