8#include "evan/glfw/platform/MacOsDesktopPlatform.hpp"
18 <<
"Initializing MacOsDesktopPlatform with window name: " <<
name
24 this->
getLogger().info() <<
"Creating GLFW window";
27 this->
getLogger().error() <<
"Failed to create GLFW window";
28 throw std::runtime_error(
"Failed to create GLFW window");
36std::vector<std::string>
47 if (enableValidationLayers ==
true) {
58std::vector<std::string>
61 return {
"VK_KHR_portability_subset" };
68 <<
"Creating Vulkan surface for MacOsDesktopPlatform";
73 throw std::runtime_error(
"Failed to create Vulkan surface");
75 this->
getLogger().info() <<
"Vulkan surface created successfully";
86 const char *
home = std::getenv(
"HOME");
87 if (
home ==
nullptr ||
home[0] ==
'\0') {
90 return std::filesystem::path(
home) /
"Library" /
"Caches";
Small result wrapper used by helpers that must return both a status and a value (e....