Skip to content

Instantly share code, notes, and snippets.

@DylanLukes
Last active May 24, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DylanLukes/d80d3aeaca392f571bcee162af4b41a4 to your computer and use it in GitHub Desktop.
Save DylanLukes/d80d3aeaca392f571bcee162af4b41a4 to your computer and use it in GitHub Desktop.
int main() {
// ....
vkmol::Engine Engine(
"VkMOL Demo", VK_MAKE_VERSION(1, 0, 0),
RequiredExtensions,
ValidationLayers,
[&](const vk::Instance &Instance) {
VkSurfaceKHR Surf;
auto Result = glfwCreateWindowSurface(Instance, Window, nullptr, &Surf);
return vkmol::SurfaceFactoryResult(vk::Result(Result), Surf);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment