Shaderific for Metal

`float a = MAXFLOAT;`

This constant represents the maximum value that is not infinity for a single precision float scalar.

`float a = HUGE_VALF;`

This constant represents the positive infinity value for a single precision float scalar.

`float a = INFINITY;`

This constant represents positive or unsigned infinity value for a single precision float scalar.

`float a = NAN;`

This constant represents a quiet NAN value for a single precision float scalar.

`float a = M_E_F;`

This constant represents Euler’s number for a single precision float scalar.

`float a = M_LOG2E_F;`

This constant represents the binary logarithm of Euler’s number for a single precision float scalar.

`float a = M_LOG10E_F;`

This constant represents the decimal logarithm of Euler’s number for a single precision float scalar.

`float a = M_LN2_F;`

This constant represents the natural logarithm of the number 2 for a single precision float scalar.

`float a = M_LN10_F;`

This constant represents the natural logarithm of the number 10 for a single precision float scalar.

`float a = M_PI_F;`

This constant represents the number π for a single precision float scalar.

`float a = M_PI_2_F;`

This constant represents the number π / 2 for a single precision float scalar.

`float a = M_PI_4_F;`

This constant represents the number π / 4 for a single precision float scalar.

`float a = M_1_PI_F;`

This constant represents the number 1 / π for a single precision float scalar.

`float a = M_2_PI_F;`

This constant represents the number 2 / π for a single precision float scalar.

`float a = M_2_SQRTPI_F;`

This constant represents the number 2 / √π for a single precision float scalar.

`float a = M_SQRT2_F;`

This constant represents the number √2 for a single precision float scalar.

`float a = M_SQRT1_2_F;`

This constant represents the number 1 / √2 for a single precision float scalar.

`half a = MAXHALF;`

This constant represents the maximum value that is not infinity for a half precision float scalar.

`half a = HUGE_VALH;`

This constant represents the positive infinity value for a half precision float scalar.

`half a = M_E_H;`

This constant represents Euler’s number for a half precision float scalar.

`half a = M_LOG2E_H;`

This constant represents the binary logarithm of Euler’s number for a half precision float scalar.

`half a = M_LOG10E_H;`

This constant represents the decimal logarithm of Euler’s number for a half precision float scalar.

`half a = M_LN2_H;`

This constant represents the natural logarithm of the number 2 for a half precision float scalar.

`half a = M_LN10_H;`

This constant represents the natural logarithm of the number 10 for a half precision float scalar.

`half a = M_PI_H;`

This constant represents the number π for a half precision float scalar.

`half a = M_PI_2_H;`

This constant represents the number π / 2 for a half precision float scalar.

`half a = M_PI_4_H;`

This constant represents the number π / 4 for a half precision float scalar.

`half a = M_1_PI_H;`

This constant represents the number 1 / π for a half precision float scalar.

`half a = M_2_PI_H;`

This constant represents the number 2 / π for a half precision float scalar.

`half a = M_2_SQRTPI_H;`

This constant represents the number 2 / √π for a half precision float scalar.

`half a = M_SQRT2_H;`

This constant represents the number √2 for a half precision float scalar.

`half a = M_SQRT1_2_H;`

This constant represents the number 1 / √2 for a half precision float scalar.