File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
290290bool4 and(bool4 x, bool4 y);
291291// clang-format on
292292
293+ // ===----------------------------------------------------------------------===//
294+ // or builtins
295+ // ===----------------------------------------------------------------------===//
296+
297+ // / \fn T or(T x, T y)
298+ // / \brief Returns the bitwise OR of the two input values, \a x and \a y.
299+ // / \param x The first input value and y The second input value.
300+ // /
301+ // / \returns The logically OR a vector and retuens bool vector.
302+
303+ _HLSL_BUILTIN_ALIAS (__builtin_hlsl_or)
304+ bool or(bool , bool );
305+ _HLSL_BUILTIN_ALIAS (__builtin_hlsl_or)
306+ bool2 or(bool2, bool2);
307+ _HLSL_BUILTIN_ALIAS (__builtin_hlsl_or)
308+ bool3 or(bool3, bool3);
309+ _HLSL_BUILTIN_ALIAS (__builtin_hlsl_or)
310+ bool4 or(bool4, bool4);
293311// ===----------------------------------------------------------------------===//
294312// any builtins
295313// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments