Skip to content

Commit

Permalink
Fixed regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhdanNV committed Sep 28, 2023
1 parent 5305c5c commit e0e122b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ if (NOT NRD_DISABLE_SHADER_COMPILATION)

# ShaderMake general arguments
set (SHADERMAKE_GENERAL_ARGS
--useAPI
--header ${NRD_SHADER_BINARIES}
--flatten
--stripReflection
Expand All @@ -182,6 +181,10 @@ if (NOT NRD_DISABLE_SHADER_COMPILATION)
-D NRD_INTERNAL
)

if (WIN32)
set (SHADERMAKE_GENERAL_ARGS --useAPI ${SHADERMAKE_GENERAL_ARGS})
endif ()

# ShaderMake commands for each shader code container
set (SHADERMAKE_COMMANDS "")

Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/REBLUR_Validation.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ NRD_EXPORT void NRD_CS_MAIN( uint2 pixelPos : SV_DispatchThreadId )
float3 X = STL::Geometry::RotateVector( gViewToWorld, Xv );

bool isInf = abs( viewZ ) > gDenoisingRange;
bool checkerboard = ( ( ( pixelPos.x >> 2 ) ^ ( pixelPos.y >> 2 ) ) & 0x1 ) == 0;
bool checkerboard = STL::Sequence::CheckerBoard( pixelPos >> 2, 0 );

uint4 textState = STL::Text::Init( pixelPos, viewportId * gScreenSize * VIEWPORT_SIZE + OFFSET, 1 );

Expand Down
2 changes: 1 addition & 1 deletion Shaders/Source/RELAX_Validation.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ NRD_EXPORT void NRD_CS_MAIN( uint2 pixelPos : SV_DispatchThreadId )
float3 X = GetCurrentWorldPosFromClipSpaceXY( viewportUv * 2.0 - 1.0, abs( viewZ ) );

bool isInf = abs( viewZ ) > gDenoisingRange;
bool checkerboard = ( ( ( pixelPos.x >> 2 ) ^ ( pixelPos.y >> 2 ) ) & 0x1 ) == 0;
bool checkerboard = STL::Sequence::CheckerBoard( pixelPos >> 2, 0 );

uint4 textState = STL::Text::Init( pixelPos, viewportId * gResourceSize * VIEWPORT_SIZE + OFFSET, 1 );

Expand Down

0 comments on commit e0e122b

Please sign in to comment.