Skip to content

Commit 381bb50

Browse files
committed
temp? fix for mix_helper on floats
1 parent 72429cb commit 381bb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ struct mix_helper<T, T NBL_PARTIAL_REQ_BOT(spirv::FMixIsCallable<T>) >
256256
};
257257

258258
template<typename T, typename U>
259-
NBL_PARTIAL_REQ_TOP(spirv::SelectIsCallable<T,U>)
260-
struct mix_helper<T, U NBL_PARTIAL_REQ_BOT(spirv::SelectIsCallable<T,U>) >
259+
NBL_PARTIAL_REQ_TOP(spirv::SelectIsCallable<T,U> && concepts::Boolean<U>)
260+
struct mix_helper<T, U NBL_PARTIAL_REQ_BOT(spirv::SelectIsCallable<T,U> && concepts::Boolean<U>) >
261261
{
262262
using return_t = conditional_t<is_vector_v<T>, vector<typename vector_traits<T>::scalar_type, vector_traits<T>::Dimension>, T>;
263263
// for a component of a that is false, the corresponding component of x is returned

0 commit comments

Comments
 (0)