Skip to content

Commit

Permalink
FSR fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EldarMuradov committed Jul 24, 2024
1 parent 390781a commit 5f1d821
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
[submodule "ext/imgui"]
path = ext/imgui
url = ../../ocornut/imgui.git
[submodule "ext/entt"]
path = ext/entt
url = ../entt.git
[submodule "ext/directxtex"]
path = ext/directxtex
url = ../DirectXTex.git
[submodule "ext/yaml-cpp"]
path = ext/yaml-cpp
url = ../yaml-cpp.git
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ era_begin(EraEngine)
add_subdirectory(programs/EraEditor)
add_subdirectory(programs/EraRuntime)
add_subdirectory(programs/EraUnitTests)
add_subdirectory(programs/EraLauncher)
era_end(EraEngine)


Expand Down
2 changes: 2 additions & 0 deletions cmake/era_engine_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function(require_module project module_name)
message("Adding target ${module_name} to ${project} program...")

# Link dependencies (if any)
add_dependencies(${project} ${module_name})
target_link_directories(${project} PUBLIC modules/${module_name}/Release)
endfunction()

Expand All @@ -63,6 +64,7 @@ function(require_module_internal module module_name)
add_subdirectory(${ERA_ENGINE_PATH}/modules/${module_name} build)

# Link dependencies (if any)
add_dependencies(${project} ${module_name})
target_link_directories(${module} PUBLIC modules/${module_name}/Release)
endfunction()

Expand Down
4 changes: 3 additions & 1 deletion modules/core/src/dlss/dlss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "dx/dx_command_list.h"

#include "core/project.h"

#include "rendering/main_renderer.h"

namespace era_engine::dlss
Expand All @@ -15,7 +17,7 @@ namespace era_engine::dlss
NVSDK_NGX_FeatureDiscoveryInfo dlssInfo{};
NVSDK_NGX_FeatureRequirement outSupported{};
dlssInfo.FeatureID = NVSDK_NGX_Feature_SuperSampling;
dlssInfo.ApplicationDataPath = L"E:\\Era Engine\\logs";
dlssInfo.ApplicationDataPath = (eproject::enginePath + std::wstring(L"/logs")).c_str();
dlssInfo.Identifier.v.ProjectDesc.EngineType = NVSDK_NGX_ENGINE_TYPE_CUSTOM;

if (NVSDK_NGX_D3D12_GetFeatureRequirements(adapter, &dlssInfo, &outSupported) != NVSDK_NGX_Result_Success)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/dlss/dlss.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#elif _DEBUG
#define ENABLE_DLSS 0
#else
#define ENABLE_DLSS 0
#define ENABLE_DLSS 1
#endif

#include "dx/dx_context.h"
Expand Down
3 changes: 2 additions & 1 deletion modules/core/src/editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2794,7 +2794,8 @@ namespace era_engine

if (ImGui::BeginProperties())
{
ImGui::PropertyCheckbox("Enable DLSS", renderer->settings.enableDLSS);
// For now it's only fsr2 wrapper. I do not have rtx gpu now :(((
ImGui::PropertyCheckbox("Enable FSR 2.0", renderer->settings.enableDLSS);

ImGui::EndProperties();
}
Expand Down
9 changes: 9 additions & 0 deletions programs/EraLauncher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include(${CMAKE_SOURCE_DIR}/cmake/era_engine_common.cmake)

era_begin(EraLauncher)
declare_support_program(EraLauncher)

require_module(EraLauncher EraScriptingCPPDecls)

target_compile_definitions(EraLauncher PRIVATE ERA_LAUNCHER)
era_end(EraLauncher)
6 changes: 6 additions & 0 deletions programs/EraLauncher/src/launcher_main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) 2023-present Eldar Muradov. All rights reserved.

int main(int argc, char** argv)
{
return 0;
}
Binary file modified resources/lib/Release/nvsdk_ngx_d.lib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added resources/lib/Release/nvsdk_ngx_d_iterator1.lib
Binary file not shown.
Binary file added tools/DisableSignatureOverride.reg
Binary file not shown.
Binary file added tools/EnableSignatureOverride.reg
Binary file not shown.

0 comments on commit 5f1d821

Please sign in to comment.