인스턴스 생성 구조 완료

This commit is contained in:
2025-04-02 01:45:40 +09:00
parent fa5f31e034
commit ca1a93945e
5 changed files with 54 additions and 1 deletions

View File

@@ -2,7 +2,10 @@
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <glm/glm.hpp>
#include <gsl/gsl>
#include <string>
#include <string_view>
#include "utilities.h"

5
include/utilities.h Normal file
View File

@@ -0,0 +1,5 @@
#pragma once
namespace veng {
bool streq(gsl::czstring left, gsl::czstring right);
}

View File

@@ -1,5 +1,6 @@
#pragma once
#include <vulkan/vulkan.h>
#include "glfw/glfw_window.h"
namespace veng {
@@ -12,7 +13,9 @@ class Graphics final {
void InitializeVulkan();
void CreateInstance();
gsl::span<gsl::czstring> GetSuggestedExtentions();
static gsl::span<gsl::czstring> GetSuggestedExtentions();
static std::vector<VkExtensionProperties> GetSupprotedInstanceExtensions();
static bool AreAllExtensionsSupported(gsl::span<gsl::czstring> extensions);
VkInstance instance_ = nullptr;
gsl::not_null<Window *> window_;