Skip to content

Commit 839ad25

Browse files
committed
note affected dxc issue about #pragma warnings: microsoft/DirectXShaderCompiler#7722
1 parent 958b60d commit 839ad25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nbl/builtin/hlsl/tgmath/impl.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ struct l2gamma_helper<T NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScalar<T>) >
540540
static T __call(T x)
541541
{
542542
// TODO: need a way to silence warning about thresholds being too large for T
543+
// affected by DXC issue: https://github.com/microsoft/DirectXShaderCompiler/issues/7722
543544
const T thresholds[4] = { 0, 5e4, 1e36, 1e305 }; // threshold values gotten from testing when the function returns nan/inf
544545
if (x > thresholds[mpl::find_lsb_v<sizeof(T)>])
545546
return bit_cast<T>(numeric_limits<T>::infinity);

0 commit comments

Comments
 (0)