src/VulkanTutorial/OffscreenRenderingVulkanTutorialMain.cpp
// Use SIGINT to stop the main rendering loop of the VulkanTutorial, transition to its orderly
// shutdown of Vulkan, and exit the program.
Use SIGINT to stop the main rendering loop of the VulkanTutorial, transition to its orderly
shutdown of Vulkan, and exit the program.
Use SIGINT to stop the main rendering loop of the VulkanTutorial transition to its orderly shutdown of Vulkan and exit the program .
void InstallSigintHandler() {
  struct sigaction act {};
  act.sa_handler = SigintHandler;
  sigemptyset(&act.sa_mask);
  act.sa_flags = 0;
  act.sa_restorer = nullptr;
  sigaction(SIGINT, &act, nullptr);
}
void InstallSigintHandler ( ) { struct sigaction act { } ; act . sa_handler = SigintHandler ; sigemptyset ( & act . sa_mask ) ; act . sa_flags = 0 ; act . sa_restorer = nullptr ; sigaction ( SIGINT , & act , nullptr ) ; }
Use SIGINT to stop the main rendering loop of the VulkanTutorial, transition to its orderly
shutdown of Vulkan, and exit the program.
Use SIGINT to stop the main rendering loop of the VulkanTutorial transition to its orderly shutdown of Vulkan and exit the program .