More shader related stuff
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "cve_window.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
namespace cve {
|
||||
CveWindow::CveWindow(int w, int h, std::string name) : width{w},
|
||||
height{h}, windowName{name} {
|
||||
@@ -19,4 +21,10 @@ namespace cve {
|
||||
window = glfwCreateWindow(width, height,
|
||||
windowName.c_str(), nullptr, nullptr);
|
||||
}
|
||||
|
||||
void CveWindow::createWindowSurface(VkInstance instance, VkSurfaceKHR *surface) {
|
||||
if (glfwCreateWindowSurface(instance, window, nullptr, surface) != VK_SUCCESS) {
|
||||
throw std::runtime_error("Failed to create window surface");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user