@@ -539,14 +539,15 @@ struct l2gamma_helper<T NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScalar<T>) >
539
539
// implementation derived from Numerical Recipes in C, transformed for log2
540
540
static T __call (T x)
541
541
{
542
- #ifdef __HLSL_VERSION
542
+ // currently throws a boost preprocess error, see: https://github.com/Devsh-Graphics-Programming/Nabla/issues/932
543
+ // #ifdef __HLSL_VERSION
543
544
#pragma dxc diagnostic push
544
545
#pragma dxc diagnostic ignored "-Wliteral-range"
545
- #endif
546
+ // #endif
546
547
const T thresholds[4 ] = { 0 , 5e4, 1e36, 1e305 }; // threshold values gotten from testing when the function returns nan/inf
547
- #ifdef __HLSL_VERSION
548
+ // #ifdef __HLSL_VERSION
548
549
#pragma dxc diagnostic pop
549
- #endif
550
+ // #endif
550
551
if (x > thresholds[mpl::find_lsb_v<sizeof (T)>])
551
552
return bit_cast<T>(numeric_limits<T>::infinity);
552
553
@@ -588,14 +589,15 @@ struct beta_helper<T NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScalar<T>) >
588
589
// implementation from Numerical Recipes in C, 2nd ed.
589
590
static T __call (T v1, T v2)
590
591
{
591
- #ifdef __HLSL_VERSION
592
+ // currently throws a boost preprocess error, see: https://github.com/Devsh-Graphics-Programming/Nabla/issues/932
593
+ // #ifdef __HLSL_VERSION
592
594
#pragma dxc diagnostic push
593
595
#pragma dxc diagnostic ignored "-Wliteral-range"
594
- #endif
596
+ // #endif
595
597
const T thresholds[4 ] = { 0 , 2e4, 1e6, 1e15 }; // threshold values gotten from testing when the function returns nan/inf/1
596
- #ifdef __HLSL_VERSION
598
+ // #ifdef __HLSL_VERSION
597
599
#pragma dxc diagnostic pop
598
- #endif
600
+ // #endif
599
601
if (v1+v2 > thresholds[mpl::find_lsb_v<sizeof (T)>])
600
602
return T (0.0 );
601
603
0 commit comments