From dfa9825e8b20b37f8813d8a83945d6c8d817e342 Mon Sep 17 00:00:00 2001 From: Warwick Date: Wed, 29 Nov 2023 12:32:12 +0000 Subject: [PATCH] Added dev corner to README --- README.md | 13 +++++++++++++ src/yave_vulkan_instance.cpp | 2 ++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index de65fe8..b614a24 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,16 @@ equivelents are required. sudo dnf install vulkan-tools vulkan-loader-devel vulkan-validation-layers-devel glfw-devel glm-devel glslc ''' + +# Dev corner +## Rules of development +- Use RAII as much as physically possible. +- Try to keep the game engine space as separate from the application space as possible. +## TODO: road to 0.0.1 +- [X] Create a management class for the GLFW window +- [X] Create and validate vulkan instance. +- [ ] Create a debug messaging system. +- [ ] Manage Physical Devices +- [ ] Manage logical Devices if necessary +- [ ] Create Vulkan pipeline +- [ ] Draw triangle diff --git a/src/yave_vulkan_instance.cpp b/src/yave_vulkan_instance.cpp index ef79899..b89d9f0 100644 --- a/src/yave_vulkan_instance.cpp +++ b/src/yave_vulkan_instance.cpp @@ -27,6 +27,8 @@ void YaveVulkanInstance::createInstance() { createInfo.enabledExtensionCount = glfwExtensionCount; createInfo.ppEnabledExtensionNames = glfwExtensions; + createInfo.enabledLayerCount = 0; + checkLayersValidSuppport(createInfo); if (vkCreateInstance(&createInfo, nullptr, &instance) != VK_SUCCESS) {