Starting to unhardcode, pipelines are now created from outside

This commit is contained in:
Blue 2023-10-16 15:47:47 -03:00
parent 2b33897b4a
commit dc3ac2fdf5
Signed by: blue
GPG key ID: 9B203B252A63EE38
16 changed files with 386 additions and 159 deletions

View file

@ -26,6 +26,7 @@
#include "instance.h"
#include "physicaldevice.h"
#include "logicaldevice.h"
#include "program/program.h"
namespace Engine {
@ -39,6 +40,7 @@ public:
void run();
void addDeviceExtension(const std::string& extensionName);
void enableDebug();
void addProgram(const Program& program);
private:
void initVulkan();
@ -56,6 +58,7 @@ private:
LogicalDevice* logicalDevice;
std::set<std::string> deviceExtensionNames;
std::vector<const char*> deviceExtensions;
std::vector<Program> programs;
};