Skip to content

Commit c0531fb

Browse files
committed
fix length_helper
1 parent 18c3257 commit c0531fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/cpp_compat/impl/intrinsics_impl.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ struct length_helper<Vector NBL_PARTIAL_REQ_BOT(concepts::FloatingPointVector<Ve
558558
#ifdef __HLSL_VERSION
559559
return spirv::length(vec);
560560
#else
561-
return std::sqrt(length_helper<Vector>::__call(vec, vec));
561+
return std::sqrt(dot_helper<Vector>::__call(vec, vec));
562562
#endif
563563
}
564564
};

0 commit comments

Comments
 (0)