Skip to content

Commit 2460593

Browse files
committed
address PR comments - turn clang-format off for or line in lit_impl
1 parent 5718451 commit 2460593

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
@@ -105,7 +105,9 @@ template <typename T> constexpr vector<T, 4> lit_impl(T NDotL, T NDotH, T M) {
105105
bool DiffuseCond = NDotL < 0;
106106
T Diffuse = select<T>(DiffuseCond, 0, NDotL);
107107
vector<T, 4> Result = {1, Diffuse, 0, 1};
108+
// clang-format off
108109
bool SpecularCond = or(DiffuseCond, (NDotH < 0));
110+
// clang-format on
109111
T SpecularExp = exp(log(NDotH) * M);
110112
Result[2] = select<T>(SpecularCond, 0, SpecularExp);
111113
return Result;

0 commit comments

Comments
 (0)