Skip to content

Commit ec1d674

Browse files
author
kevyuu
committed
Make promote constrainable
1 parent c365240 commit ec1d674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/cpp_compat/promote.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace impl
1212
{
1313

1414
// partial specialize this for `T=matrix<scalar_t,,>|vector<scalar_t,>` and `U=matrix<scalar_t,,>|vector<scalar_t,>|scalar_t`
15-
template<typename T, typename U>
15+
template<typename T, typename U NBL_STRUCT_CONSTRAINABLE>
1616
struct Promote
1717
{
1818
NBL_CONSTEXPR_FUNC T operator()(NBL_CONST_REF_ARG(U) v)

0 commit comments

Comments
 (0)