Skip to content

Commit

Permalink
Remove native DLSS from a standalone build, use Streamline
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-shirokii committed Aug 9, 2024
1 parent b052df5 commit 2730711
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ option(RG_WITH_SURFACE_XLIB "Build with Xlib VkSurfaceKHR support" OFF)

option(RG_WITH_IMGUI "Build RTGL1 with ImGui debug windows" ON)
option(RG_WITH_DX12 "Build RTGL1 with DX12 features" ON)
option(RG_WITH_NATIVE_DLSS "Build RTGL1 with native DLSS2" ON)

option(RG_WITH_EXAMPLES "Build with examples executable" ON)

Expand Down Expand Up @@ -253,7 +254,7 @@ target_include_directories(RayTracedGL1 PRIVATE "Source/KTX/include" "Source/KTX

# DLSS
target_include_directories(RayTracedGL1 PRIVATE "Source/Streamline/include")
if (DEFINED ENV{DLSS_SDK_PATH})
if (RG_WITH_NATIVE_DLSS AND DEFINED ENV{DLSS_SDK_PATH})
message(STATUS "Found Native DLSS SDK: $ENV{DLSS_SDK_PATH}")
target_include_directories(RayTracedGL1 PRIVATE "$ENV{DLSS_SDK_PATH}/include")
add_definitions(-DRG_USE_NATIVE_DLSS2)
Expand Down
4 changes: 2 additions & 2 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"type": "BOOL"
},
{
"name": "RG_WITH_NVIDIA_DLSS",
"value": "true",
"name": "RG_WITH_NATIVE_DLSS",
"value": "False",
"type": "BOOL"
}
]
Expand Down
3 changes: 1 addition & 2 deletions Source/DLSS2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,7 @@ auto RTGL1::DLSS2::RequiredVulkanExtensions_Device( VkPhysicalDevice physDevice
RTGL1::DLSS2::DLSS2( VkInstance instance,
VkDevice device,
VkPhysicalDevice physDevice,
const char* pAppGuid,
bool enableDebug )
const char* pAppGuid )
{
}

Expand Down

0 comments on commit 2730711

Please sign in to comment.