MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / demo_main

Function demo_main

cube/cube.cpp:4249–4257  ·  view source on GitHub ↗

Global function invoked from NS or UI views and controllers to create demo

Source from the content-addressed store, hash-verified

4247
4248// Global function invoked from NS or UI views and controllers to create demo
4249static void demo_main(Demo &demo, void *caMetalLayer, int argc, const char *argv[]) {
4250 demo.init(argc, (char **)argv);
4251 demo.caMetalLayer = caMetalLayer;
4252 demo.create_surface();
4253 demo.select_physical_device();
4254 demo.init_vk_swapchain();
4255 demo.prepare();
4256 demo.spin_angle = 0.4f;
4257}
4258
4259#else
4260#error "Platform not supported"

Callers

nothing calls this directly

Calls 5

initMethod · 0.80
create_surfaceMethod · 0.80
init_vk_swapchainMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected