Skip to content

Commit 84245ba

Browse files
windows fixes
1 parent c67730c commit 84245ba

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

ZEngine/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ target_link_libraries(
5656
stduuid
5757
yaml-cpp::yaml-cpp
5858
spirv-cross-core
59+
SPIRV-Tools-static
60+
SPIRV-Tools-opt
5961
glslang::glslang
6062
glslang::glslang-default-resource-limits
6163
glslang::SPIRV
@@ -133,7 +135,7 @@ target_compile_definitions(
133135
YAML_CPP_STATIC_DEFINE)
134136

135137
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
136-
target_compile_definitions(zEngineLib PUBLIC VK_USE_PLATFORM_WIN32_KHR)
138+
target_compile_definitions(zEngineLib PUBLIC VK_USE_PLATFORM_WIN32_KHR NOMINMAX)
137139
endif()
138140

139141
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

ZEngine/ZEngine/Rendering/Buffers/IndexBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <ZEngine/Hardwares/VulkanDevice.h>
33
#include <ZEngine/Rendering/Buffers/GraphicBuffer.h>
44
#include <ZEngine/ZEngineDef.h>
5+
#include <span>
56

67
namespace ZEngine::Rendering::Buffers
78
{

ZEngine/ZEngine/Rendering/Buffers/IndirectBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22
#include <ZEngine/Hardwares/VulkanDevice.h>
33
#include <ZEngine/Rendering/Buffers/GraphicBuffer.h>
4+
#include <span>
45

56
namespace ZEngine::Rendering::Buffers
67
{

0 commit comments

Comments
 (0)