Initial Commit

This commit is contained in:
Logan McNaughton
2023-10-04 14:33:17 -06:00
commit 2e4a23c315
51 changed files with 11398 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include "wsi.hpp"
#include <SDL.h>
class SDL_WSIPlatform : public Vulkan::WSIPlatform
{
public:
VkSurfaceKHR create_surface(VkInstance instance, VkPhysicalDevice gpu) override;
void destroy_surface(VkInstance instance, VkSurfaceKHR surface) override;
std::vector<const char *> get_instance_extensions() override;
uint32_t get_surface_width() override;
uint32_t get_surface_height() override;
bool alive(Vulkan::WSI &wsi) override;
void poll_input() override;
void set_window(SDL_Window *_window);
private:
VkSurfaceKHR surface;
SDL_Window *window;
};