Skip to content

Commit 5443a75

Browse files
committed
Requested Changes
- removal of GLM - use defined cstring - formatting on BuildEngine.ps1 - CMake Restructure for Vulkan headers and loader
1 parent c599e37 commit 5443a75

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,3 @@ add_subdirectory (Panzerfaust)
6363
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
6464
set_property (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Panzerfaust)
6565
endif ()
66-
67-
include(CPack)

CMakePresets.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
"GLFW_BUILD_DOCS": "OFF",
2727
"GLFW_BUILD_EXAMPLES": "OFF",
28-
"GLFW_BUILD_WAYLAND": "ON",
2928

3029
"ASSIMP_BUILD_TESTS": "OFF",
3130
"ASSIMP_INSTALL": "OFF",

Scripts/BuildEngine.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,15 @@ function Build([string]$configuration, [int]$VsVersion , [bool]$runBuild) {
139139

140140
$buildProcess = Start-Process $cMakeProgram -ArgumentList $buildArguments -NoNewWindow -PassThru
141141

142-
# Grab the process handle. When using `-NoNewWindow`, retrieving the ExitCode can return null once the process
143-
# has exited. See:
144-
# https://stackoverflow.com/questions/44057728/start-process-system-diagnostics-process-exitcode-is-null-with-nonewwindow
142+
# Grab the process handle. When using `-NoNewWindow`, retrieving the ExitCode can return null once the process
143+
# has exited. See: https://stackoverflow.com/questions/44057728/start-process-system-diagnostics-process-exitcode-is-null-with-nonewwindow
144+
145145
$processHandle = $buildProcess.Handle
146146
$buildProcess.WaitForExit();
147-
if ($buildProcess.ExitCode -ne 0) {
148-
throw "cmake failed build for '$buildArguments' with exit code '$buildProcess.ExitCode'"
149-
}
147+
148+
if ($buildProcess.ExitCode -ne 0) {
149+
throw "cmake failed build for '$buildArguments' with exit code '$buildProcess.ExitCode'"
150+
}
150151

151152
$install_directory =""
152153

ZEngine/ZEngine/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ target_include_directories (zEngineLib
5353

5454
target_precompile_headers(zEngineLib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/pch.h)
5555

56-
target_compile_definitions(zEngineLib PUBLIC GLM_ENABLE_EXPERIMENTAL)
57-
5856
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
5957
target_compile_definitions (zEngineLib PUBLIC ENABLE_VULKAN_VALIDATION_LAYER)
6058
endif()

ZEngine/ZEngine/Rendering/Specifications/ShaderSpecification.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include <ZEngineDef.h>
23
#include <vulkan/vulkan.h>
34

45
namespace ZEngine::Rendering::Specifications
@@ -38,25 +39,25 @@ namespace ZEngine::Rendering::Specifications
3839
uint32_t Set{0xFFFFFFFF};
3940
uint32_t Binding{0xFFFFFFFF};
4041
uint32_t Count{1};
41-
const char* Name;
42+
cstring Name;
4243
DescriptorType DescriptorTypeValue;
4344
ShaderStageFlags Flags;
4445
};
4546

4647
struct PushConstantSpecification
4748
{
48-
const char* Name;
49+
cstring Name;
4950
uint32_t Size;
5051
uint32_t Offset;
5152
ShaderStageFlags Flags;
5253
};
5354

5455
struct ShaderSpecification
5556
{
56-
uint32_t OverloadMaxSet = 1;
57-
uint32_t OverloadPoolSize = 0;
58-
const char* VertexFilename = {};
59-
const char* FragmentFilename = {};
60-
const char* Name = {};
57+
uint32_t OverloadMaxSet = 1;
58+
uint32_t OverloadPoolSize = 0;
59+
cstring VertexFilename = {};
60+
cstring FragmentFilename = {};
61+
cstring Name = {};
6162
};
6263
} // namespace ZEngine::Rendering::Specifications

dependencies.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ target_sources(
211211

212212
target_compile_definitions(imgui PUBLIC GLFW_INCLUDE_VULKAN IMGUI_DEFINE_MATH_OPERATORS)
213213

214-
target_link_libraries(imgui PUBLIC glfw Vulkan::Headers Vulkan::Loader)
214+
target_link_libraries(imgui PRIVATE glfw Vulkan::Headers Vulkan::Loader)
215215

216216
add_library(imguizmo STATIC)
217217

@@ -246,6 +246,9 @@ endif()
246246

247247
target_link_libraries(External_libs
248248
INTERFACE
249+
Vulkan::Headers
250+
Vulkan::Loader
251+
glfw
249252
fmt::fmt
250253
imguizmo
251254
spdlog::spdlog

0 commit comments

Comments
 (0)