Skip to content

Commit

Permalink
v4.0.1:
Browse files Browse the repository at this point in the history
HIGHLIGHTS:
- improved compatibility with PS
- follow up fixes

DETAILS:
- improved compatibility with PS
- fixed wrong dependency from STL in NRD.hlsli
- added forgotten name to the list of resource names (and improved code to automatically detect such issues in the future)
  • Loading branch information
dzhdanNV committed Dec 21, 2022
1 parent 9f0de98 commit efb227a
Show file tree
Hide file tree
Showing 218 changed files with 230 additions and 224 deletions.
4 changes: 2 additions & 2 deletions Include/NRD.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ license agreement from NVIDIA CORPORATION is strictly prohibited.

#define NRD_VERSION_MAJOR 4
#define NRD_VERSION_MINOR 0
#define NRD_VERSION_BUILD 0
#define NRD_VERSION_DATE "20 December 2022"
#define NRD_VERSION_BUILD 1
#define NRD_VERSION_DATE "21 December 2022"

#if defined(_MSC_VER)
#define NRD_CALL __fastcall
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NVIDIA Real-time Denoisers v4.0.0 (NRD)
# NVIDIA Real-time Denoisers v4.0.1 (NRD)

[![Build NRD SDK](https://github.com/NVIDIAGameWorks/RayTracingDenoiser/actions/workflows/build.yml/badge.svg)](https://github.com/NVIDIAGameWorks/RayTracingDenoiser/actions/workflows/build.yml)

Expand Down
2 changes: 1 addition & 1 deletion Resources/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Versioning rules:

#define VERSION_MAJOR 4
#define VERSION_MINOR 0
#define VERSION_BUILD 0
#define VERSION_BUILD 1
#define VERSION_REVISION 0

#define VERSION_STRING STR(VERSION_MAJOR.VERSION_MINOR.VERSION_BUILD.VERSION_REVISION)
2 changes: 1 addition & 1 deletion Shaders/Include/NRD.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ float4 NRD_FrontEnd_PackNormalAndRoughness( float3 N, float roughness, uint mate
float4 p;

#if( NRD_ROUGHNESS_ENCODING == NRD_ROUGHNESS_ENCODING_SQRT_LINEAR )
roughness = STL::Math::Sqrt01( roughness );
roughness = sqrt( saturate( roughness ) );
#elif( NRD_ROUGHNESS_ENCODING == NRD_ROUGHNESS_ENCODING_SQ_LINEAR )
roughness *= roughness;
#endif
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/Clear_f.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#include "../Resources/Clear_f.resources.hlsli"

Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/Clear_ui.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#include "../Resources/Clear_ui.resources.hlsli"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_DIRECTIONAL_OCCLUSION
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseOcclusion_Blur.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseOcclusion_HistoryFix.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseOcclusion_PrePass.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_OCCLUSION
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSh_Blur.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSh_HistoryFix.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSh_PostBlur.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSh_PrePass.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSh_SplitScreen.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSpecularSh_Blur.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSpecularSh_HistoryFix.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_DiffuseSpecularSh_PostBlur.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/

#include "STL.hlsli"
#include "../Include/NRD.hlsli"
#include "STL.hlsli"

#define REBLUR_DIFFUSE
#define REBLUR_SPECULAR
Expand Down
Loading

0 comments on commit efb227a

Please sign in to comment.