Blender V5.3
gpu_shader_common_math.bsl.hh File Reference

Go to the source code of this file.

Functions

void math_add (float a, float b, float, float &result)
void math_subtract (float a, float b, float, float &result)
void math_multiply (float a, float b, float, float &result)
void math_divide (float a, float b, float, float &result)
void math_power (float a, float b, float, float &result)
void math_logarithm (float a, float b, float, float &result)
void math_sqrt (float a, float, float, float &result)
void math_inversesqrt (float a, float, float, float &result)
void math_absolute (float a, float, float, float &result)
void math_radians (float a, float, float, float &result)
void math_degrees (float a, float, float, float &result)
void math_minimum (float a, float b, float, float &result)
void math_maximum (float a, float b, float, float &result)
void math_less_than (float a, float b, float, float &result)
void math_greater_than (float a, float b, float, float &result)
void math_round (float a, float, float, float &result)
void math_floor (float a, float, float, float &result)
void math_ceil (float a, float, float, float &result)
void math_fraction (float a, float, float, float &result)
void math_modulo (float a, float b, float, float &result)
void math_floored_modulo (float a, float b, float, float &result)
void math_trunc (float a, float, float, float &result)
void math_snap (float a, float b, float, float &result)
void math_pingpong (float a, float b, float, float &result)
void math_wrap (float a, float b, float c, float &result)
void math_sine (float a, float, float, float &result)
void math_cosine (float a, float, float, float &result)
void math_tangent (float a, float, float, float &result)
void math_sinh (float a, float, float, float &result)
void math_cosh (float a, float, float, float &result)
void math_tanh (float a, float, float, float &result)
void math_arcsine (float a, float, float, float &result)
void math_arccosine (float a, float, float, float &result)
void math_arctangent (float a, float, float, float &result)
void math_arctan2 (float a, float b, float, float &result)
void math_sign (float a, float, float, float &result)
void math_exponent (float a, float, float, float &result)
void math_compare (float a, float b, float c, float &result)
void math_multiply_add (float a, float b, float c, float &result)
void math_smoothmin (float a, float b, float c, float &result)
void math_smoothmax (float a, float b, float c, float &result)
float math_reduce_max (float3 a)
float math_average (float3 a)

Function Documentation

◆ math_absolute()

void math_absolute ( float a,
float ,
float ,
float & result )

Definition at line 71 of file gpu_shader_common_math.bsl.hh.

References abs, and math_absolute().

Referenced by math_absolute().

◆ math_add()

void math_add ( float a,
float b,
float ,
float & result )

Definition at line 12 of file gpu_shader_common_math.bsl.hh.

References b, and math_add().

Referenced by math_add().

◆ math_arccosine()

void math_arccosine ( float a,
float ,
float ,
float & result )

Definition at line 216 of file gpu_shader_common_math.bsl.hh.

References acos, and math_arccosine().

Referenced by math_arccosine().

◆ math_arcsine()

void math_arcsine ( float a,
float ,
float ,
float & result )

Definition at line 210 of file gpu_shader_common_math.bsl.hh.

References asin, and math_arcsine().

Referenced by math_arcsine().

◆ math_arctan2()

void math_arctan2 ( float a,
float b,
float ,
float & result )

Definition at line 230 of file gpu_shader_common_math.bsl.hh.

References atan, b, and math_arctan2().

Referenced by math_arctan2().

◆ math_arctangent()

void math_arctangent ( float a,
float ,
float ,
float & result )

Definition at line 222 of file gpu_shader_common_math.bsl.hh.

References atan, and math_arctangent().

Referenced by math_arctangent().

◆ math_average()

float math_average ( float3 a)

Definition at line 285 of file gpu_shader_common_math.bsl.hh.

References math_average(), float3::x, float3::y, and float3::z.

Referenced by math_average(), and node_attribute().

◆ math_ceil()

void math_ceil ( float a,
float ,
float ,
float & result )

Definition at line 125 of file gpu_shader_common_math.bsl.hh.

References ceil, and math_ceil().

Referenced by math_ceil().

◆ math_compare()

void math_compare ( float a,
float b,
float c,
float & result )

Definition at line 248 of file gpu_shader_common_math.bsl.hh.

References abs, b, math_compare(), and max.

Referenced by math_compare().

◆ math_cosh()

void math_cosh ( float a,
float ,
float ,
float & result )

Definition at line 198 of file gpu_shader_common_math.bsl.hh.

References cosh, and math_cosh().

Referenced by math_cosh().

◆ math_cosine()

void math_cosine ( float a,
float ,
float ,
float & result )

Definition at line 180 of file gpu_shader_common_math.bsl.hh.

References cos, and math_cosine().

Referenced by math_cosine().

◆ math_degrees()

void math_degrees ( float a,
float ,
float ,
float & result )

Definition at line 83 of file gpu_shader_common_math.bsl.hh.

References degrees(), and math_degrees().

Referenced by math_degrees().

◆ math_divide()

void math_divide ( float a,
float b,
float ,
float & result )

Definition at line 30 of file gpu_shader_common_math.bsl.hh.

References b, math_divide(), and safe_divide().

Referenced by math_divide().

◆ math_exponent()

void math_exponent ( float a,
float ,
float ,
float & result )

Definition at line 242 of file gpu_shader_common_math.bsl.hh.

References exp, and math_exponent().

Referenced by math_exponent().

◆ math_floor()

void math_floor ( float a,
float ,
float ,
float & result )

Definition at line 119 of file gpu_shader_common_math.bsl.hh.

References floor, and math_floor().

Referenced by math_floor().

◆ math_floored_modulo()

void math_floored_modulo ( float a,
float b,
float ,
float & result )

Definition at line 143 of file gpu_shader_common_math.bsl.hh.

References b, floor, and math_floored_modulo().

Referenced by math_floored_modulo().

◆ math_fraction()

void math_fraction ( float a,
float ,
float ,
float & result )

Definition at line 131 of file gpu_shader_common_math.bsl.hh.

References floor, and math_fraction().

Referenced by math_fraction().

◆ math_greater_than()

void math_greater_than ( float a,
float b,
float ,
float & result )

Definition at line 107 of file gpu_shader_common_math.bsl.hh.

References b, and math_greater_than().

Referenced by math_greater_than().

◆ math_inversesqrt()

void math_inversesqrt ( float a,
float ,
float ,
float & result )

Definition at line 65 of file gpu_shader_common_math.bsl.hh.

References inversesqrt(), and math_inversesqrt().

Referenced by math_inversesqrt().

◆ math_less_than()

void math_less_than ( float a,
float b,
float ,
float & result )

Definition at line 101 of file gpu_shader_common_math.bsl.hh.

References b, and math_less_than().

Referenced by math_less_than().

◆ math_logarithm()

void math_logarithm ( float a,
float b,
float ,
float & result )

Definition at line 53 of file gpu_shader_common_math.bsl.hh.

References b, log2, and math_logarithm().

Referenced by math_logarithm().

◆ math_maximum()

void math_maximum ( float a,
float b,
float ,
float & result )

Definition at line 95 of file gpu_shader_common_math.bsl.hh.

References b, math_maximum(), and max.

Referenced by math_maximum().

◆ math_minimum()

void math_minimum ( float a,
float b,
float ,
float & result )

Definition at line 89 of file gpu_shader_common_math.bsl.hh.

References b, math_minimum(), and min.

Referenced by math_minimum().

◆ math_modulo()

void math_modulo ( float a,
float b,
float ,
float & result )

Definition at line 137 of file gpu_shader_common_math.bsl.hh.

References b, compatible_mod(), and math_modulo().

Referenced by math_modulo().

◆ math_multiply()

void math_multiply ( float a,
float b,
float ,
float & result )

Definition at line 24 of file gpu_shader_common_math.bsl.hh.

References b, and math_multiply().

Referenced by math_multiply().

◆ math_multiply_add()

void math_multiply_add ( float a,
float b,
float c,
float & result )

Definition at line 254 of file gpu_shader_common_math.bsl.hh.

References b, and math_multiply_add().

Referenced by math_multiply_add().

◆ math_pingpong()

void math_pingpong ( float a,
float b,
float ,
float & result )

Definition at line 161 of file gpu_shader_common_math.bsl.hh.

References abs, b, fract(), and math_pingpong().

Referenced by math_pingpong().

◆ math_power()

void math_power ( float a,
float b,
float ,
float & result )

Definition at line 36 of file gpu_shader_common_math.bsl.hh.

References abs, b, compatible_pow(), floor, math_power(), and mod.

Referenced by math_power().

◆ math_radians()

void math_radians ( float a,
float ,
float ,
float & result )

Definition at line 77 of file gpu_shader_common_math.bsl.hh.

References math_radians(), and radians().

Referenced by math_radians().

◆ math_reduce_max()

float math_reduce_max ( float3 a)

◆ math_round()

void math_round ( float a,
float ,
float ,
float & result )

Definition at line 113 of file gpu_shader_common_math.bsl.hh.

References floor, and math_round().

Referenced by math_round().

◆ math_sign()

void math_sign ( float a,
float ,
float ,
float & result )

Definition at line 236 of file gpu_shader_common_math.bsl.hh.

References math_sign(), and sign().

Referenced by math_sign().

◆ math_sine()

void math_sine ( float a,
float ,
float ,
float & result )

Definition at line 174 of file gpu_shader_common_math.bsl.hh.

References math_sine(), and sin.

Referenced by math_sine().

◆ math_sinh()

void math_sinh ( float a,
float ,
float ,
float & result )

Definition at line 192 of file gpu_shader_common_math.bsl.hh.

References math_sinh(), and sinh.

Referenced by math_sinh().

◆ math_smoothmax()

void math_smoothmax ( float a,
float b,
float c,
float & result )

Definition at line 273 of file gpu_shader_common_math.bsl.hh.

References b, math_smoothmax(), and math_smoothmin().

Referenced by math_smoothmax().

◆ math_smoothmin()

void math_smoothmin ( float a,
float b,
float c,
float & result )

Definition at line 261 of file gpu_shader_common_math.bsl.hh.

References abs, b, math_smoothmin(), max, and min.

Referenced by math_smoothmax(), and math_smoothmin().

◆ math_snap()

void math_snap ( float a,
float b,
float ,
float & result )

Definition at line 155 of file gpu_shader_common_math.bsl.hh.

References b, floor, math_snap(), and safe_divide().

Referenced by math_snap().

◆ math_sqrt()

void math_sqrt ( float a,
float ,
float ,
float & result )

Definition at line 59 of file gpu_shader_common_math.bsl.hh.

References math_sqrt(), and sqrt.

Referenced by math_sqrt().

◆ math_subtract()

void math_subtract ( float a,
float b,
float ,
float & result )

Definition at line 18 of file gpu_shader_common_math.bsl.hh.

References b, and math_subtract().

Referenced by math_subtract().

◆ math_tangent()

void math_tangent ( float a,
float ,
float ,
float & result )

Definition at line 186 of file gpu_shader_common_math.bsl.hh.

References math_tangent(), and tan.

Referenced by math_tangent().

◆ math_tanh()

void math_tanh ( float a,
float ,
float ,
float & result )

Definition at line 204 of file gpu_shader_common_math.bsl.hh.

References math_tanh(), and tanh.

Referenced by math_tanh().

◆ math_trunc()

void math_trunc ( float a,
float ,
float ,
float & result )

Definition at line 149 of file gpu_shader_common_math.bsl.hh.

References math_trunc(), and trunc.

Referenced by math_trunc().

◆ math_wrap()

void math_wrap ( float a,
float b,
float c,
float & result )

Definition at line 168 of file gpu_shader_common_math.bsl.hh.

References b, math_wrap(), and wrap().

Referenced by math_wrap().