-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
077b6fa
commit 21080f1
Showing
104 changed files
with
7,071 additions
and
1,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
media*/ | ||
bin/ | ||
dxc/ | ||
donut-*/ | ||
build*/ | ||
/media* | ||
/dxc | ||
/donut-* | ||
/build* | ||
.vs | ||
.vscode | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.sublime-workspace | ||
compile-shaders.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
set(dlss_sdk "${CMAKE_CURRENT_SOURCE_DIR}/DLSS") | ||
|
||
if (WIN32) | ||
add_library(DLSS SHARED IMPORTED) | ||
|
||
set(dlss_platform "Windows_x86_64") | ||
set(dlss_lib_release "nvsdk_ngx_s.lib") | ||
set(dlss_lib_debug "nvsdk_ngx_s_dbg.lib") | ||
|
||
set_target_properties(DLSS PROPERTIES | ||
IMPORTED_IMPLIB "${dlss_sdk}/lib/${dlss_platform}/x86_64/${dlss_lib_release}" | ||
IMPORTED_IMPLIB_DEBUG "${dlss_sdk}/lib/${dlss_platform}/x86_64/${dlss_lib_debug}" | ||
IMPORTED_LOCATION "${dlss_sdk}/lib/${dlss_platform}/rel/nvngx_dlss.dll" | ||
IMPORTED_LOCATION_DEBUG "${dlss_sdk}/lib/${dlss_platform}/dev/nvngx_dlss.dll" | ||
) | ||
|
||
set(DLSS_SHARED_LIBRARY_PATH "${dlss_sdk}/lib/${dlss_platform}/$<IF:$<CONFIG:Debug>,dev,rel>/nvngx_dlss.dll") | ||
|
||
elseif (UNIX AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
add_library(DLSS STATIC IMPORTED) | ||
|
||
set(dlss_platform "Linux_x86_64") | ||
set(dlss_lib "libnvidia-ngx-dlss.so.2.3.1") | ||
|
||
set_target_properties(DLSS PROPERTIES | ||
IMPORTED_LOCATION "${dlss_sdk}/lib/${dlss_platform}/libnvsdk_ngx.a" | ||
) | ||
|
||
set(DLSS_SHARED_LIBRARY_PATH "${dlss_sdk}/lib/${dlss_platform}/$<IF:$<CONFIG:Debug>,dev,rel>/${dlss_lib}") | ||
|
||
else() | ||
message("DLSS is not supported on the target platform.") | ||
endif() | ||
|
||
if (TARGET DLSS) | ||
target_include_directories(DLSS INTERFACE "${dlss_sdk}/include") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/NRD") | ||
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/NRD/CMakeLists.txt") | ||
set(NRD_DXC_PATH ${DXC_DXIL_EXECUTABLE}) | ||
set(NRD_DXC_SPIRV_PATH ${DXC_SPIRV_EXECUTABLE}) | ||
option(NRD_STATIC_LIBRARY "" ON) | ||
|
||
add_subdirectory(NRD) | ||
|
||
set_target_properties(NRD PROPERTIES FOLDER NRD) | ||
set_target_properties(Shaders PROPERTIES FOLDER NRD) | ||
set_target_properties(NrdShaders PROPERTIES FOLDER NRD) | ||
set_target_properties(CreateFolderForShaders PROPERTIES FOLDER NRD) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.