Skip to content

Commit 5eb02f2

Browse files
committed
Corrections
1 parent 9a44ce8 commit 5eb02f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/builtin/hlsl/concepts/core.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ namespace impl
6666
template<typename T>
6767
struct IsEmulatingFloatingPointType
6868
{
69-
static const bool value = false;
69+
static const bool value = nbl::hlsl::is_floating_point_v<T>;
7070
};
7171
}
7272

7373
//! Floating point types are native floating point types or types that imitate native floating point types (for example emulated_float64_t)
7474
template<typename T>
75-
NBL_BOOL_CONCEPT FloatingPointLikeScalar = (nbl::hlsl::is_floating_point_v<T> && nbl::hlsl::is_scalar_v<T>) || impl::IsEmulatingFloatingPointType<T>::value;
75+
NBL_BOOL_CONCEPT FloatingPointLikeScalar = impl::IsEmulatingFloatingPointType<T>::value;
7676

7777
}
7878
}

0 commit comments

Comments
 (0)