Blender V5.3
gpu_shader_material_compare.bsl.hh File Reference

Go to the source code of this file.

Functions

void compare_float_less_than (float a, float b, bool &result)
void compare_float_less_equal (float a, float b, bool &result)
void compare_float_greater_than (float a, float b, bool &result)
void compare_float_greater_equal (float a, float b, bool &result)
void compare_float_equal (float a, float b, float epsilon, bool &result)
void compare_float_not_equal (float a, float b, float epsilon, bool &result)
void compare_int_less_than (int a, int b, bool &result)
void compare_int_less_equal (int a, int b, bool &result)
void compare_int_greater_than (int a, int b, bool &result)
void compare_int_greater_equal (int a, int b, bool &result)
void compare_int_equal (int a, int b, bool &result)
void compare_int_not_equal (int a, int b, bool &result)
void compare_vector_average_less_than (float3 a, float3 b, bool &result)
void compare_vector_dot_less_than (float3 a, float3 b, float comp, bool &result)
void compare_vector_direction_less_than (float3 a, float3 b, float angle, bool &result)
void compare_vector_element_less_than (float3 a, float3 b, bool &result)
void compare_vector_length_less_than (float3 a, float3 b, bool &result)
void compare_vector_average_less_equal (float3 a, float3 b, bool &result)
void compare_vector_dot_less_equal (float3 a, float3 b, float comp, bool &result)
void compare_vector_direction_less_equal (float3 a, float3 b, float angle, bool &result)
void compare_vector_element_less_equal (float3 a, float3 b, bool &result)
void compare_vector_length_less_equal (float3 a, float3 b, bool &result)
void compare_vector_average_greater_than (float3 a, float3 b, bool &result)
void compare_vector_dot_greater_than (float3 a, float3 b, float comp, bool &result)
void compare_vector_direction_greater_than (float3 a, float3 b, float angle, bool &result)
void compare_vector_element_greater_than (float3 a, float3 b, bool &result)
void compare_vector_length_greater_than (float3 a, float3 b, bool &result)
void compare_vector_average_greater_equal (float3 a, float3 b, bool &result)
void compare_vector_dot_greater_equal (float3 a, float3 b, float comp, bool &result)
void compare_vector_direction_greater_equal (float3 a, float3 b, float angle, bool &result)
void compare_vector_element_greater_equal (float3 a, float3 b, bool &result)
void compare_vector_length_greater_equal (float3 a, float3 b, bool &result)
void compare_vector_average_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_vector_dot_equal (float3 a, float3 b, float comp, float epsilon, bool &result)
void compare_vector_direction_equal (float3 a, float3 b, float angle, float epsilon, bool &result)
void compare_vector_element_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_vector_length_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_vector_average_not_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_vector_dot_not_equal (float3 a, float3 b, float comp, float epsilon, bool &result)
void compare_vector_direction_not_equal (float3 a, float3 b, float angle, float epsilon, bool &result)
void compare_vector_element_not_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_vector_length_not_equal (float3 a, float3 b, float epsilon, bool &result)
void compare_color_equal (float4 a, float4 b, float epsilon, bool &result)
void compare_color_not_equal (float4 a, float4 b, float epsilon, bool &result)
void compare_color_brighter (float4 a, float4 b, float3 luminance_coefficients, bool &result)
void compare_color_darker (float4 a, float4 b, float3 luminance_coefficients, bool &result)

Function Documentation

◆ compare_color_brighter()

void compare_color_brighter ( float4 a,
float4 b,
float3 luminance_coefficients,
bool & result )

Definition at line 295 of file gpu_shader_material_compare.bsl.hh.

References b, compare_color_brighter(), and get_luminance().

Referenced by compare_color_brighter().

◆ compare_color_darker()

void compare_color_darker ( float4 a,
float4 b,
float3 luminance_coefficients,
bool & result )

Definition at line 303 of file gpu_shader_material_compare.bsl.hh.

References b, compare_color_darker(), and get_luminance().

Referenced by compare_color_darker().

◆ compare_color_equal()

void compare_color_equal ( float4 a,
float4 b,
float epsilon,
bool & result )

Definition at line 283 of file gpu_shader_material_compare.bsl.hh.

References abs, b, compare_color_equal(), float4::x, float4::y, and float4::z.

Referenced by compare_color_equal().

◆ compare_color_not_equal()

void compare_color_not_equal ( float4 a,
float4 b,
float epsilon,
bool & result )

◆ compare_float_equal()

void compare_float_equal ( float a,
float b,
float epsilon,
bool & result )

Definition at line 38 of file gpu_shader_material_compare.bsl.hh.

References abs, b, and compare_float_equal().

Referenced by compare_float_equal().

◆ compare_float_greater_equal()

void compare_float_greater_equal ( float a,
float b,
bool & result )

Definition at line 32 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_float_greater_equal().

Referenced by compare_float_greater_equal().

◆ compare_float_greater_than()

void compare_float_greater_than ( float a,
float b,
bool & result )

Definition at line 26 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_float_greater_than().

Referenced by compare_float_greater_than().

◆ compare_float_less_equal()

void compare_float_less_equal ( float a,
float b,
bool & result )

Definition at line 20 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_float_less_equal().

Referenced by compare_float_less_equal().

◆ compare_float_less_than()

void compare_float_less_than ( float a,
float b,
bool & result )

Definition at line 14 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_float_less_than().

Referenced by compare_float_less_than().

◆ compare_float_not_equal()

void compare_float_not_equal ( float a,
float b,
float epsilon,
bool & result )

Definition at line 44 of file gpu_shader_material_compare.bsl.hh.

References abs, b, and compare_float_not_equal().

Referenced by compare_float_not_equal().

◆ compare_int_equal()

void compare_int_equal ( int a,
int b,
bool & result )

Definition at line 76 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_equal().

Referenced by compare_int_equal().

◆ compare_int_greater_equal()

void compare_int_greater_equal ( int a,
int b,
bool & result )

Definition at line 70 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_greater_equal().

Referenced by compare_int_greater_equal().

◆ compare_int_greater_than()

void compare_int_greater_than ( int a,
int b,
bool & result )

Definition at line 64 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_greater_than().

Referenced by compare_int_greater_than().

◆ compare_int_less_equal()

void compare_int_less_equal ( int a,
int b,
bool & result )

Definition at line 58 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_less_equal().

Referenced by compare_int_less_equal().

◆ compare_int_less_than()

void compare_int_less_than ( int a,
int b,
bool & result )

Definition at line 52 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_less_than().

Referenced by compare_int_less_than().

◆ compare_int_not_equal()

void compare_int_not_equal ( int a,
int b,
bool & result )

Definition at line 82 of file gpu_shader_material_compare.bsl.hh.

References b, and compare_int_not_equal().

Referenced by compare_int_not_equal().

◆ compare_vector_average_equal()

void compare_vector_average_equal ( float3 a,
float3 b,
float epsilon,
bool & result )

◆ compare_vector_average_greater_equal()

void compare_vector_average_greater_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_average_greater_than()

void compare_vector_average_greater_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_average_less_equal()

void compare_vector_average_less_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_average_less_than()

void compare_vector_average_less_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_average_not_equal()

void compare_vector_average_not_equal ( float3 a,
float3 b,
float epsilon,
bool & result )

◆ compare_vector_direction_equal()

void compare_vector_direction_equal ( float3 a,
float3 b,
float angle,
float epsilon,
bool & result )

◆ compare_vector_direction_greater_equal()

void compare_vector_direction_greater_equal ( float3 a,
float3 b,
float angle,
bool & result )

◆ compare_vector_direction_greater_than()

void compare_vector_direction_greater_than ( float3 a,
float3 b,
float angle,
bool & result )

◆ compare_vector_direction_less_equal()

void compare_vector_direction_less_equal ( float3 a,
float3 b,
float angle,
bool & result )

◆ compare_vector_direction_less_than()

void compare_vector_direction_less_than ( float3 a,
float3 b,
float angle,
bool & result )

◆ compare_vector_direction_not_equal()

void compare_vector_direction_not_equal ( float3 a,
float3 b,
float angle,
float epsilon,
bool & result )

◆ compare_vector_dot_equal()

void compare_vector_dot_equal ( float3 a,
float3 b,
float comp,
float epsilon,
bool & result )

Definition at line 224 of file gpu_shader_material_compare.bsl.hh.

References abs, b, compare_vector_dot_equal(), and dot().

Referenced by compare_vector_dot_equal().

◆ compare_vector_dot_greater_equal()

void compare_vector_dot_greater_equal ( float3 a,
float3 b,
float comp,
bool & result )

◆ compare_vector_dot_greater_than()

void compare_vector_dot_greater_than ( float3 a,
float3 b,
float comp,
bool & result )

◆ compare_vector_dot_less_equal()

void compare_vector_dot_less_equal ( float3 a,
float3 b,
float comp,
bool & result )

◆ compare_vector_dot_less_than()

void compare_vector_dot_less_than ( float3 a,
float3 b,
float comp,
bool & result )

Definition at line 96 of file gpu_shader_material_compare.bsl.hh.

References b, compare_vector_dot_less_than(), and dot().

Referenced by compare_vector_dot_less_than().

◆ compare_vector_dot_not_equal()

void compare_vector_dot_not_equal ( float3 a,
float3 b,
float comp,
float epsilon,
bool & result )

◆ compare_vector_element_equal()

void compare_vector_element_equal ( float3 a,
float3 b,
float epsilon,
bool & result )

◆ compare_vector_element_greater_equal()

void compare_vector_element_greater_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_element_greater_than()

void compare_vector_element_greater_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_element_less_equal()

void compare_vector_element_less_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_element_less_than()

void compare_vector_element_less_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_element_not_equal()

void compare_vector_element_not_equal ( float3 a,
float3 b,
float epsilon,
bool & result )

◆ compare_vector_length_equal()

void compare_vector_length_equal ( float3 a,
float3 b,
float epsilon,
bool & result )

◆ compare_vector_length_greater_equal()

void compare_vector_length_greater_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_length_greater_than()

void compare_vector_length_greater_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_length_less_equal()

void compare_vector_length_less_equal ( float3 a,
float3 b,
bool & result )

◆ compare_vector_length_less_than()

void compare_vector_length_less_than ( float3 a,
float3 b,
bool & result )

◆ compare_vector_length_not_equal()

void compare_vector_length_not_equal ( float3 a,
float3 b,
float epsilon,
bool & result )