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

Method update

framework/api_vulkan_sample.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void ApiVulkanSample::update(float delta_time)
102{
103 if (view_updated)
104 {
105 view_updated = false;
106 view_changed();
107 }
108
109 assert(has_render_context());
110 render(delta_time);
111 camera.update(delta_time);
112 if (camera.moving())
113 {
114 view_updated = true;
115 }
116}
117
118bool ApiVulkanSample::resize(const uint32_t _width, const uint32_t _height)
119{

Callers 1

update_overlayMethod · 0.45

Calls 1

movingMethod · 0.80

Tested by

no test coverage detected