Skip to content

Commit

Permalink
fix: build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Dec 17, 2024
1 parent 8ba40b5 commit f72b111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file removed engine/utils/hardware/gpu/vulkan/vulkan-1.dll
Binary file not shown.
5 changes: 3 additions & 2 deletions engine/utils/hardware/gpu/vulkan/vulkan_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "utils/file_manager_utils.h"
#include "utils/logging_utils.h"
#include "utils/result.hpp"
#include "utils/widechar_conv.h"
#include "vulkan.h"

#if defined(_WIN32)
Expand Down Expand Up @@ -253,7 +254,7 @@ inline cpp::result<std::vector<cortex::hw::GPU>, std::string> GetGpuInfoList() {
};
// Load the Vulkan library
#if defined(__APPLE__) && defined(__MACH__)
void* vulkanLibrary = nullptr;
return std::vector<cortex::hw::GPU>{};
#elif defined(__linux__)
auto vulkan_path = get_vulkan_path("libvulkan.so");
if (vulkan_path.has_error()) {
Expand All @@ -266,7 +267,7 @@ inline cpp::result<std::vector<cortex::hw::GPU>, std::string> GetGpuInfoList() {
if (vulkan_path.has_error()) {
return cpp::fail(vulkan_path.error());
}
HMODULE vulkanLibrary = LoadLibraryW(vulkan_path.value().string());
HMODULE vulkanLibrary = LoadLibraryW(vulkan_path.value().wstring().c_str());
#endif
if (!vulkanLibrary) {
std::cerr << "Failed to load the Vulkan library." << std::endl;
Expand Down

0 comments on commit f72b111

Please sign in to comment.