Skip to content

Commit 409fd4c

Browse files
committed
address PR comments - turn clang-format off for or line in lit_impl
1 parent 0f6d9bf commit 409fd4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsic_helpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ template <typename T> constexpr vector<T, 4> lit_impl(T NDotL, T NDotH, T M) {
113113
bool DiffuseCond = NDotL < 0;
114114
T Diffuse = select<T>(DiffuseCond, 0, NDotL);
115115
vector<T, 4> Result = {1, Diffuse, 0, 1};
116+
// clang-format off
116117
bool SpecularCond = or(DiffuseCond, (NDotH < 0));
118+
// clang-format on
117119
T SpecularExp = exp(log(NDotH) * M);
118120
Result[2] = select<T>(SpecularCond, 0, SpecularExp);
119121
return Result;

0 commit comments

Comments
 (0)