Feature: VkDevice Creation (#5)

* update contributing with goals

* add required extensions to vulkan instance

* add validation layers + debug callback

* add device class which enumerates availble gpu devices

* improve device selection logic

* add logical device creation
This commit is contained in:
Preston McGee
2026-05-22 19:48:51 -07:00
committed by GitHub
parent a63c271f92
commit bcd19f1e60
5 changed files with 203 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
#include <iostream>
#include "Device.hpp"
Engine::Engine(Window* window): window_(window) {
// cleans up this constructor
@@ -19,8 +21,12 @@ void Engine::init() {
std::cout << "[" << __FUNCTION__ << ": " << __LINE__ << "] Error creating Vulkan instance." << std::endl;
}
// next steps:
// device selection and setup
Device device(&instance_);
(void)device.selectPhysicalDevice();
(void)device.createLogicalDevice();
// next steps:
// queue creation
// vulkan memory allocator
// create vulkan surface