imcludes
All checks were successful
Build / Build (push) Successful in 3m7s

This commit is contained in:
2026-04-12 17:16:41 -04:00
parent 4be8d68a57
commit 700fcd53f4
2 changed files with 46 additions and 12 deletions

View File

@@ -1,11 +1,10 @@
#include "ctx.h"
#include <iostream>
#include <cstdint>
namespace Oatmeal {
ctx::ctx() {}
ctx::ctx(GLFWwindow *window, uint32_t width, uint32_t height) {}
ctx::~ctx() {}
ctx::~ctx() {}
void ctx::test() { std::cout << "Test" << std::endl; }
} // namespace Oatmeal

View File

@@ -1,12 +1,47 @@
#include "vulkan/vulkan.hpp"
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
#include <vulkan/vulkan_raii.hpp>
#else
import vulkan_hpp;
#endif
#define GLFW_INCLUDE_VULKAN
#if defined(PLATFORM_WINDOWS)
#define VK_USE_PLATFORM_WIN32_KHR
#define GLFW_EXPOSE_NATIVE_WIN32
#elif defined(PLATFORM_LINUX)
#define VK_USE_PLATFORM_XLIB_KHR
#define GLFW_EXPOSE_NATIVE_X11
#elif defined(PLATFORM_MACOS)
#define VK_USE_PLATFORM_MACOS_MVK
#define GLFW_EXPOSE_NATIVE_COCOA
#endif
#define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#define GLM_ENABLE_EXPERIMENTAL
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include <cstdint>
constexpr int MAX_FRAMES_IN_FLIGHT = 2;
const std::vector<char const *> validationLayers = {"VK_LAYER_KHRONOS_validation"};
const std::vector<const char *> requiredDeviceExtensions = {vk::KHRSwapchainExtensionName};
#ifndef NDEBUG
constexpr bool enableValidationLayers = false;
#else
constexpr bool enableValidationLayers = true;
#endif
namespace Oatmeal {
class ctx {
public:
ctx();
~ctx();
class ctx {
public:
ctx(GLFWwindow *window, uint32_t width, uint32_t height);
~ctx();
void test();
private:
};
private:
};
} // namespace Oatmeal