add device clas which enumerates availble gpu devices

This commit is contained in:
2026-05-16 13:37:44 -07:00
parent a0b3325e1d
commit 9bcb8385fe
5 changed files with 95 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,11 @@ void Engine::init() {
std::cout << "[" << __FUNCTION__ << ": " << __LINE__ << "] Error creating Vulkan instance." << std::endl;
}
// next steps:
// device selection and setup
Device device(&instance_);
device.selectPhysicalDevice();
// next steps:
// queue creation
// vulkan memory allocator
// create vulkan surface