Skip to content

Commit 995cbf0

Browse files
Merge branch 'user/kernel/fix-command-buffer-manager' of https://github.com/JeanPhilippeKernel/RendererEngine into user/kernel/fix-command-buffer-manager
2 parents 825a9b4 + 70f32aa commit 995cbf0

File tree

15 files changed

+152
-118
lines changed

15 files changed

+152
-118
lines changed

CMakePresets.json

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"BUILD_SHARED_LIBS": "OFF",
1717
"FETCHCONTENT_QUIET": "OFF",
1818

19+
"FMT_MODULE": "OFF",
1920
"VULKAN_HEADERS_ENABLE_INSTALL": "ON",
2021
"ENTT_INCLUDE_HEADERS": "ON",
2122

@@ -56,9 +57,9 @@
5657
}
5758
},
5859
{
59-
"name": "Windows_x64_Debug",
60+
"name": "Windows_x64_Debug_2022",
6061
"inherits": "BaseOptions",
61-
"displayName": "Windows Visual Studio Debug",
62+
"displayName": "Windows Visual Studio 2022 Debug",
6263
"generator": "Visual Studio 17 2022",
6364
"binaryDir": "Result.Windows.x64.MultiConfig",
6465
"architecture": "x64",
@@ -69,14 +70,28 @@
6970

7071
},
7172
{
72-
"name": "Windows_x64_Release",
73-
"displayName": "Windows Visual Studio Release",
74-
"inherits": "Windows_x64_Debug",
73+
"name": "Windows_x64_Release_2022",
74+
"displayName": "Windows Visual Studio 2022 Release",
75+
"inherits": "Windows_x64_Debug_2022",
7576
"cacheVariables": {
7677
"CMAKE_CONFIGURATION_TYPES": "Release"
7778
}
7879
},
7980

81+
{
82+
"name": "Windows_x64_Debug_2026",
83+
"inherits": "Windows_x64_Debug_2022",
84+
"displayName": "Windows Visual Studio 2026 Debug",
85+
"generator": "Visual Studio 18 2026"
86+
},
87+
88+
{
89+
"name": "Windows_x64_Release_2026",
90+
"inherits": "Windows_x64_Release_2022",
91+
"displayName": "Windows Visual Studio 2026 Release",
92+
"generator": "Visual Studio 18 2026"
93+
},
94+
8095
{
8196
"name": "Darwin_x64_Debug",
8297
"inherits": "BaseOptions",
@@ -146,22 +161,34 @@
146161

147162
"buildPresets": [
148163
{
149-
"name": "Windows_x64_Debug",
150-
"configurePreset": "Windows_x64_Debug",
164+
"name": "Windows_x64_Debug_2022",
165+
"configurePreset": "Windows_x64_Debug_2022",
151166
"configuration": "Debug",
152167
"nativeToolOptions": [
153168
"-nodeReuse:false"
154169
]
155170
},
156171
{
157-
"name": "Windows_x64_Release",
158-
"configurePreset": "Windows_x64_Release",
172+
"name": "Windows_x64_Release_2022",
173+
"configurePreset": "Windows_x64_Release_2022",
159174
"configuration": "Release",
160175
"nativeToolOptions": [
161176
"-nodeReuse:false"
162177
]
163178
},
164179

180+
{
181+
"name": "Windows_x64_Debug_2026",
182+
"inherits": "Windows_x64_Debug_2022",
183+
"configurePreset": "Windows_x64_Debug_2026"
184+
},
185+
186+
{
187+
"name": "Windows_x64_Release_2026",
188+
"inherits": "Windows_x64_Release_2022",
189+
"configurePreset": "Windows_x64_Release_2026"
190+
},
191+
165192
{
166193
"name": "Darwin_x64_Debug",
167194
"configuration": "Debug",

Resources/Shaders/imgui.frag

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#version 460 core
22
#extension GL_EXT_nonuniform_qualifier : require
3-
#extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable
43

54
layout(location = 0) out vec4 fColor;
65
layout(set = 0, binding = 0) uniform sampler2D _unused;
@@ -14,10 +13,7 @@ layout(location = 0) in struct
1413

1514
void main()
1615
{
17-
uint texId = uint(In.TexData.z);
18-
if (texId < 0xFFFFFFFFu)
19-
{
20-
vec4 texVal = texture(TextureArray[nonuniformEXT(texId)], In.TexData.xy);
21-
fColor = In.Color * texVal;
22-
}
23-
}
16+
uint texId = uint(floor(In.TexData.z + 0.5));
17+
vec4 texVal = texture(TextureArray[nonuniformEXT(texId)], In.TexData.xy);
18+
fColor = In.Color * texVal;
19+
}

Resources/Shaders/imgui.vert

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ layout(push_constant) uniform uPushConstant
88
vec2 uScale;
99
vec2 uTranslate;
1010
uint index;
11+
uint _padding;
1112
}
1213
pc;
1314

Scripts/BuildEngine.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ param (
4242
[bool] $VerifyFormatting = $False,
4343

4444
[Parameter(HelpMessage = "VS version use to build, default to 2022")]
45-
[ValidateSet(2022)]
45+
[ValidateSet('2022', '2026')]
4646
[int] $VsVersion = 2022,
4747

4848
[Parameter(HelpMessage = "Build Launcher only")]
@@ -121,6 +121,10 @@ function Build([string]$configuration, [int]$VsVersion , [bool]$runBuild) {
121121
# Define CMake Generator arguments
122122
$configName = $systemName, $architecture, $configuration -join "_"
123123

124+
if($IsWindows){
125+
$configName += '_'+$VsVersion
126+
}
127+
124128
$cMakeArguments = " --preset $configName $cMakeCacheVariableOverride"
125129

126130
# CMake Generation process
@@ -130,8 +134,9 @@ function Build([string]$configuration, [int]$VsVersion , [bool]$runBuild) {
130134
throw "cmake failed generation for '$cMakeArguments' with exit code '$cMakeProcess.ExitCode'"
131135
}
132136

137+
138+
if ($runBuild) {
133139
# CMake Build Process
134-
#
135140

136141
Write-Host "Building $systemName $architecture $configuration"
137142

@@ -166,6 +171,7 @@ function Build([string]$configuration, [int]$VsVersion , [bool]$runBuild) {
166171
if($installProcess.ExitCode -ne 0){
167172
throw "cmake failed to install to '$install_directory'"
168173
}
174+
}
169175
}
170176

171177

Tetragrama/Components/DockspaceUIComponent.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Tetragrama::Components
4040
m_editor_serializer->Initialize(parent->Arena);
4141
m_asset_importer->Initialize(parent->Arena);
4242

43-
m_dockspace_node_flag = ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_PassthruCentralNode;
43+
m_dockspace_node_flag = ImGuiDockNodeFlags_NoWindowMenuButton | static_cast<decltype(ImGuiDockNodeFlags_NoWindowMenuButton)>(ImGuiDockNodeFlags_PassthruCentralNode);
4444
m_window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus;
4545

4646
auto app = reinterpret_cast<EditorPtr>(ParentLayer->CurrentApp);
@@ -211,7 +211,7 @@ namespace Tetragrama::Components
211211

212212
ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[0]);
213213
ImGui::SetCursorPos(ImVec2(10, ImGui::GetWindowSize().y - 30));
214-
ImGui::TextColored(s_asset_importer_report_msg_color, s_asset_importer_report_msg.c_str());
214+
ImGui::TextColored(s_asset_importer_report_msg_color, "%s", s_asset_importer_report_msg.c_str());
215215
ImGui::PopFont();
216216

217217
ImGui::EndPopup();
@@ -244,7 +244,7 @@ namespace Tetragrama::Components
244244

245245
ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[0]);
246246
ImGui::SetCursorPos(ImVec2(10, wind_size.y - 30));
247-
ImGui::TextColored(s_scene_serializer_log_color, s_scene_serializer_log);
247+
ImGui::TextColored(s_scene_serializer_log_color, "%s", s_scene_serializer_log);
248248
ImGui::PopFont();
249249

250250
ImGui::EndPopup();
@@ -385,7 +385,7 @@ namespace Tetragrama::Components
385385

386386
if (ImGui::BeginPopupModal(str_id, NULL, ImGuiWindowFlags_AlwaysAutoResize))
387387
{
388-
ImGui::Text(fmt::format("You have unsaved changes for your current scene : {}", current_scene->Name).c_str());
388+
ImGui::Text("%s", fmt::format("You have unsaved changes for your current scene : {}", current_scene->Name).c_str());
389389
ImGui::Separator();
390390

391391
if (ImGui::Button("Save", ImVec2(120, 0)))

Tetragrama/Messengers/Messenger.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ namespace Tetragrama::Messengers
141141
// catch (...)
142142
//{
143143
//}
144+
return {};
144145
}
145146

146147
template <typename TRecipient, typename TMessage>

0 commit comments

Comments
 (0)