Skip to content

Commit c54ed92

Browse files
committed
Automatic: Committing clang-format changes
1 parent 9976cf8 commit c54ed92

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tutorials/common/Common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ HIPRT_HOST_DEVICE HIPRT_INLINE uint2 tea( uint32_t val0, uint32_t val1 )
132132
return make_uint2( v0, v1 );
133133
}
134134

135-
136135
HIPRT_HOST_DEVICE HIPRT_INLINE float dot4( const float4& a, const float4& b )
137136
{
138137
return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w;

tutorials/common/ShadowRayKernel.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ extern "C" __global__ void __launch_bounds__( 64 ) ShadowRayKernel(
165165
hiprtHit hitShadow = tr.getNextHit();
166166
int lightVisibility = hitShadow.hasHit() ? 0 : 1;
167167

168-
if ( pdf != 0.0f ) est += lightVisibility * le * max( 0.0f, hiprt::dot( Ng, hiprt::normalize( lightDir ) ) ) / pdf;
168+
if ( pdf != 0.0f )
169+
est += lightVisibility * le * max( 0.0f, hiprt::dot( Ng, hiprt::normalize( lightDir ) ) ) / pdf;
169170
}
170171
}
171172

tutorials/common/TutorialKernels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include <common/FluidSimulation.h>
2626

2727
#include <hiprt/hiprt_device.h>
28-
#include <hiprt/hiprt_vec.h>
2928
#include <hiprt/hiprt_math.h>
29+
#include <hiprt/hiprt_vec.h>
3030

3131
#ifndef BLOCK_SIZE
3232
#define BLOCK_SIZE 64

0 commit comments

Comments
 (0)