Skip to content

Commit

Permalink
Linux: workaround for shader compilation (no functional changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhdanNV committed Sep 28, 2023
1 parent e6b3220 commit 5305c5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 = STL::Sequence::CheckerBoard( pixelPos >> 2, 0 );
bool checkerboard = ( ( ( pixelPos.x >> 2 ) ^ ( pixelPos.y >> 2 ) ) & 0x1 ) == 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 = STL::Sequence::CheckerBoard( pixelPos >> 2, 0 );
bool checkerboard = ( ( ( pixelPos.x >> 2 ) ^ ( pixelPos.y >> 2 ) ) & 0x1 ) == 0;

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

Expand Down

0 comments on commit 5305c5c

Please sign in to comment.