인스턴스 생성 구조 완료
This commit is contained in:
@@ -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
5
include/utilities.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
namespace veng {
|
||||
bool streq(gsl::czstring left, gsl::czstring right);
|
||||
}
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user