MXVK Vulkan Framework 0.35.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
main.cpp File Reference
#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_exception.hpp"
#include <cstdint>
#include <exception>
#include <iostream>
#include <vector>

Go to the source code of this file.

Classes

class  example::HeadlessExample

Namespaces

namespace  example

Functions

int main ()

Function Documentation

◆ main()

int main ( void )

Definition at line 66 of file main.cpp.

66 {
67 try {
69 return app.run() ? 0 : 1;
70 } catch (const mxvk::Exception &ex) {
71 std::cerr << "headless example: " << ex.text() << '\n';
72 } catch (const std::exception &ex) {
73 std::cerr << "headless example: " << ex.what() << '\n';
74 }
75 return 1;
76}
std::string text() const