Blender V4.3
compat.h File Reference
#include <metal_atomic>
#include <metal_pack>
#include <metal_stdlib>
#include <simd/simd.h>
#include "util/half.h"
#include "util/types.h"

Go to the source code of this file.

Classes

struct  Buffer1DParamsMetal
 
struct  Texture2DParamsMetal
 
struct  Texture3DParamsMetal
 
struct  MetalAncillaries
 

Macros

#define __KERNEL_GPU__
 
#define __KERNEL_METAL__
 
#define CCL_NAMESPACE_BEGIN
 
#define CCL_NAMESPACE_END
 
#define ATTR_FALLTHROUGH
 
#define ccl_device
 
#define ccl_device_inline   ccl_device __attribute__((always_inline))
 
#define ccl_device_forceinline   ccl_device __attribute__((always_inline))
 
#define ccl_device_noinline   ccl_device __attribute__((noinline))
 
#define ccl_device_extern   extern "C"
 
#define ccl_device_noinline_cpu   ccl_device
 
#define ccl_device_inline_method   ccl_device
 
#define ccl_global   device
 
#define ccl_inline_constant   static constant constexpr
 
#define ccl_device_constant   constant
 
#define ccl_static_constexpr   static constant constexpr
 
#define ccl_constant   constant
 
#define ccl_gpu_shared   threadgroup
 
#define ccl_private   thread
 
#define ccl_ray_data   ccl_private
 
#define ccl_may_alias
 
#define ccl_restrict   __restrict
 
#define ccl_loop_no_unroll
 
#define ccl_align(n)   alignas(n)
 
#define ccl_optional_struct_init
 
#define kernel_assert(cond)
 
#define offsetof(t, d)   __builtin_offsetof(t, d)
 
#define ccl_gpu_global_id_x()   metal_global_id
 
#define ccl_gpu_warp_size   simdgroup_size
 
#define ccl_gpu_thread_idx_x   simd_group_index
 
#define ccl_gpu_thread_mask(thread_warp)   uint64_t((1ull << thread_warp) - 1)
 
#define ccl_gpu_ballot(predicate)   ((uint64_t)((simd_vote::vote_t)simd_ballot(predicate)))
 
#define ccl_gpu_syncthreads()   threadgroup_barrier(mem_flags::mem_threadgroup);
 
#define ccl_gpu_kernel(block_num_threads, thread_num_registers)
 
#define ccl_gpu_kernel_threads(block_num_threads)
 
#define FN0()
 
#define FN1(p1)   p1;
 
#define FN2(p1, p2)   p1; p2;
 
#define FN3(p1, p2, p3)   p1; p2; p3;
 
#define FN4(p1, p2, p3, p4)   p1; p2; p3; p4;
 
#define FN5(p1, p2, p3, p4, p5)   p1; p2; p3; p4; p5;
 
#define FN6(p1, p2, p3, p4, p5, p6)   p1; p2; p3; p4; p5; p6;
 
#define FN7(p1, p2, p3, p4, p5, p6, p7)   p1; p2; p3; p4; p5; p6; p7;
 
#define FN8(p1, p2, p3, p4, p5, p6, p7, p8)   p1; p2; p3; p4; p5; p6; p7; p8;
 
#define FN9(p1, p2, p3, p4, p5, p6, p7, p8, p9)   p1; p2; p3; p4; p5; p6; p7; p8; p9;
 
#define FN10(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10;
 
#define FN11(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11;
 
#define FN12(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12;
 
#define FN13(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13;
 
#define FN14(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14;
 
#define FN15(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15;
 
#define FN16(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16;
 
#define FN17(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17;
 
#define FN18(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18;
 
#define FN19(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18; p19;
 
#define FN20(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20)   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18; p19; p20;
 
#define GET_LAST_ARG(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, ...)   p20
 
#define PARAMS_MAKER(...)   GET_LAST_ARG(__VA_ARGS__, FN20, FN19, FN18, FN17, FN16, FN15, FN14, FN13, FN12, FN11, FN10, FN9, FN8, FN7, FN6, FN5, FN4, FN3, FN2, FN1, FN0)
 
#define ccl_gpu_kernel_signature(name, ...)
 
#define ccl_gpu_kernel_postfix
 
#define ccl_gpu_kernel_call(x)   context.x
 
#define ccl_gpu_kernel_within_bounds(i, n)   true
 
#define ccl_gpu_kernel_lambda(func, ...)
 
#define VOLUME_READ_LAMBDA(function_call)
 
#define VOLUME_WRITE_LAMBDA(function_call)
 
#define __uint_as_float(x)   as_type<float>(x)
 
#define __float_as_uint(x)   as_type<uint>(x)
 
#define __int_as_float(x)   as_type<float>(x)
 
#define __float_as_int(x)   as_type<int>(x)
 
#define __float2half(x)   half(x)
 
#define powf(x, y)   pow(float(x), float(y))
 
#define fabsf(x)   fabs(float(x))
 
#define copysignf(x, y)   copysign(float(x), float(y))
 
#define asinf(x)   asin(float(x))
 
#define acosf(x)   acos(float(x))
 
#define atanf(x)   atan(float(x))
 
#define floorf(x)   floor(float(x))
 
#define ceilf(x)   ceil(float(x))
 
#define hypotf(x, y)   hypot(float(x), float(y))
 
#define atan2f(x, y)   atan2(float(x), float(y))
 
#define fmaxf(x, y)   fmax(float(x), float(y))
 
#define fminf(x, y)   fmin(float(x), float(y))
 
#define fmodf(x, y)   fmod(float(x), float(y))
 
#define sinhf(x)   sinh(float(x))
 
#define coshf(x)   cosh(float(x))
 
#define tanhf(x)   tanh(float(x))
 
#define saturatef(x)   saturate(float(x))
 
#define trigmode   fast
 
#define sinf(x)   trigmode::sin(float(x))
 
#define cosf(x)   trigmode::cos(float(x))
 
#define tanf(x)   trigmode::tan(float(x))
 
#define expf(x)   trigmode::exp(float(x))
 
#define sqrtf(x)   trigmode::sqrt(float(x))
 
#define logf(x)   trigmode::log(float(x))
 
#define NULL   0
 
#define __device__
 

Enumerations

enum  SamplerType {
  SamplerFilterNearest_AddressRepeat , SamplerFilterNearest_AddressClampEdge , SamplerFilterNearest_AddressClampZero , SamplerFilterNearest_AddressMirroredRepeat ,
  SamplerFilterLinear_AddressRepeat , SamplerFilterLinear_AddressClampEdge , SamplerFilterLinear_AddressClampZero , SamplerFilterLinear_AddressMirroredRepeat ,
  SamplerCount
}
 

Functions

ccl_device_forceinline float2 make_float2 (const float x, const float y)
 
ccl_device_forceinline float3 make_float3 (const float x, const float y, const float z)
 
ccl_device_forceinline float4 make_float4 (const float x, const float y, const float z, const float w)
 
ccl_device_forceinline int2 make_int2 (const int x, const int y)
 
ccl_device_forceinline int3 make_int3 (const int x, const int y, const int z)
 
ccl_device_forceinline int4 make_int4 (const int x, const int y, const int z, const int w)
 
ccl_device_forceinline uint2 make_uint2 (const uint x, const uint y)
 
ccl_device_forceinline uint3 make_uint3 (const uint x, const uint y, const uint z)
 
ccl_device_forceinline uint4 make_uint4 (const uint x, const uint y, const uint z, const uint w)
 
ccl_device_forceinline uchar4 make_uchar4 (const uchar x, const uchar y, const uchar z, const uchar w)
 

Variables

constant constexpr array< sampler, SamplerCountmetal_samplers
 

Macro Definition Documentation

◆ __device__

#define __device__

Definition at line 317 of file device/metal/compat.h.

◆ __float2half

#define __float2half ( x)    half(x)

Definition at line 286 of file device/metal/compat.h.

Referenced by float_to_half_display(), and float_to_half_image().

◆ __float_as_int

◆ __float_as_uint

◆ __int_as_float

◆ __KERNEL_GPU__

#define __KERNEL_GPU__

Definition at line 7 of file device/metal/compat.h.

◆ __KERNEL_METAL__

#define __KERNEL_METAL__

Definition at line 8 of file device/metal/compat.h.

◆ __uint_as_float

◆ acosf

◆ asinf

◆ atan2f

#define atan2f ( x,
y )   atan2(float(x), float(y))

Definition at line 296 of file device/metal/compat.h.

Referenced by angle_signed_v2v2(), armature_finalize_restpose(), armature_transform_recurse(), bend_angle(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), blend(), BLI_dial_angle(), BLI_ewa_imp2radangle(), BLI_uvproject_from_camera(), bm_mesh_calc_uvs_sphere_face(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), btAtan2(), blender::nodes::node_shader_tex_gradient_cc::GradientFunction::call(), check_zone(), cloth_spring_angle(), compatible_atan2(), dir_phi(), dir_theta(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirect(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_spherical(), ED_armature_join_objects_exec(), h_to_gamma(), init_track_for_stabilization(), insert_seam_vert_array(), blender::ed::sculpt_paint::load_tex_task_cb_ex(), make_bevel_list_2D(), map_to_sphere(), map_to_sphere(), map_to_tube(), map_to_tube(), mat3_normalized_to_eul2(), mat3_normalized_to_eulo2(), mat3_to_quat_legacy(), blender::nodes::node_shader_tex_sky_cc::node_shader_gpu_tex_sky(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_stroke_curve_end(), blender::ed::sculpt_paint::paint_stroke_line_constrain(), precise_angle(), project_bucket_clip_face(), quat_split_swing_and_twist(), radial_control_modal(), rotation_contribution(), RotationBetween(), sky_spherical_coordinates(), stencil_control_calculate(), stencil_set_target(), svm_gradient(), svm_node_ies(), to_gamma(), to_phi(), transform_draw_cursor_draw(), tri_to_quat_ex(), blender::nodes::try_dispatch_float_math_fl_fl_to_fl(), ui_draw_pie_center(), ui_hsvcircle_vals_from_pos(), blender::draw::v2_to_short_angle(), vec_to_quat(), vfont_to_curve(), and WM_event_drag_direction().

◆ atanf

◆ ATTR_FALLTHROUGH

#define ATTR_FALLTHROUGH

Definition at line 13 of file device/metal/compat.h.

◆ ccl_align

#define ccl_align ( n)    alignas(n)

Definition at line 62 of file device/metal/compat.h.

◆ ccl_constant

#define ccl_constant   constant

Definition at line 51 of file device/metal/compat.h.

◆ ccl_device

#define ccl_device

Definition at line 35 of file device/metal/compat.h.

◆ ccl_device_constant

#define ccl_device_constant   constant

Definition at line 49 of file device/metal/compat.h.

◆ ccl_device_extern

#define ccl_device_extern   extern "C"

Definition at line 44 of file device/metal/compat.h.

◆ ccl_device_forceinline

#define ccl_device_forceinline   ccl_device __attribute__((always_inline))

Definition at line 37 of file device/metal/compat.h.

◆ ccl_device_inline

#define ccl_device_inline   ccl_device __attribute__((always_inline))

Definition at line 36 of file device/metal/compat.h.

◆ ccl_device_inline_method

#define ccl_device_inline_method   ccl_device

Definition at line 46 of file device/metal/compat.h.

◆ ccl_device_noinline

#define ccl_device_noinline   ccl_device __attribute__((noinline))

Definition at line 41 of file device/metal/compat.h.

◆ ccl_device_noinline_cpu

#define ccl_device_noinline_cpu   ccl_device

Definition at line 45 of file device/metal/compat.h.

◆ ccl_global

#define ccl_global   device

Definition at line 47 of file device/metal/compat.h.

◆ ccl_gpu_ballot

#define ccl_gpu_ballot ( predicate)    ((uint64_t)((simd_vote::vote_t)simd_ballot(predicate)))

Definition at line 76 of file device/metal/compat.h.

◆ ccl_gpu_global_id_x

#define ccl_gpu_global_id_x ( )    metal_global_id

Definition at line 71 of file device/metal/compat.h.

◆ ccl_gpu_kernel

#define ccl_gpu_kernel ( block_num_threads,
thread_num_registers )

Definition at line 83 of file device/metal/compat.h.

◆ ccl_gpu_kernel_call

#define ccl_gpu_kernel_call ( x)    context.x

Definition at line 183 of file device/metal/compat.h.

◆ ccl_gpu_kernel_lambda

#define ccl_gpu_kernel_lambda ( func,
... )
Value:
struct KernelLambda \
{ \
KernelLambda(ccl_private MetalKernelContext &_context) : context(_context) {} \
ccl_private MetalKernelContext &context; \
__VA_ARGS__; \
int operator()(const int state) const { return (func); } \
} ccl_gpu_kernel_lambda_pass(context)
SIMD_FORCE_INLINE btVector3 operator()(const btVector3 &x) const
Return the transform of the vector.
Definition btTransform.h:90
#define ccl_private
static ulong state[N]

Definition at line 187 of file device/metal/compat.h.

◆ ccl_gpu_kernel_postfix

#define ccl_gpu_kernel_postfix

Definition at line 182 of file device/metal/compat.h.

◆ ccl_gpu_kernel_signature

#define ccl_gpu_kernel_signature ( name,
... )

Definition at line 139 of file device/metal/compat.h.

◆ ccl_gpu_kernel_threads

#define ccl_gpu_kernel_threads ( block_num_threads)

Definition at line 84 of file device/metal/compat.h.

◆ ccl_gpu_kernel_within_bounds

#define ccl_gpu_kernel_within_bounds ( i,
n )   true

Definition at line 184 of file device/metal/compat.h.

◆ ccl_gpu_shared

#define ccl_gpu_shared   threadgroup

Definition at line 52 of file device/metal/compat.h.

◆ ccl_gpu_syncthreads

#define ccl_gpu_syncthreads ( )    threadgroup_barrier(mem_flags::mem_threadgroup);

Definition at line 77 of file device/metal/compat.h.

◆ ccl_gpu_thread_idx_x

#define ccl_gpu_thread_idx_x   simd_group_index

Definition at line 73 of file device/metal/compat.h.

◆ ccl_gpu_thread_mask

#define ccl_gpu_thread_mask ( thread_warp)    uint64_t((1ull << thread_warp) - 1)

Definition at line 74 of file device/metal/compat.h.

◆ ccl_gpu_warp_size

#define ccl_gpu_warp_size   simdgroup_size

Definition at line 72 of file device/metal/compat.h.

◆ ccl_inline_constant

#define ccl_inline_constant   static constant constexpr

Definition at line 48 of file device/metal/compat.h.

◆ ccl_loop_no_unroll

#define ccl_loop_no_unroll

Definition at line 61 of file device/metal/compat.h.

◆ ccl_may_alias

#define ccl_may_alias

Definition at line 59 of file device/metal/compat.h.

◆ CCL_NAMESPACE_BEGIN

#define CCL_NAMESPACE_BEGIN

Definition at line 9 of file device/metal/compat.h.

◆ CCL_NAMESPACE_END

#define CCL_NAMESPACE_END

Definition at line 10 of file device/metal/compat.h.

◆ ccl_optional_struct_init

#define ccl_optional_struct_init

Definition at line 63 of file device/metal/compat.h.

◆ ccl_private

#define ccl_private   thread

Definition at line 53 of file device/metal/compat.h.

◆ ccl_ray_data

#define ccl_ray_data   ccl_private

Definition at line 57 of file device/metal/compat.h.

◆ ccl_restrict

#define ccl_restrict   __restrict

Definition at line 60 of file device/metal/compat.h.

◆ ccl_static_constexpr

#define ccl_static_constexpr   static constant constexpr

Definition at line 50 of file device/metal/compat.h.

◆ ceilf

#define ceilf ( x)    ceil(float(x))

Definition at line 294 of file device/metal/compat.h.

Referenced by actkeys_previewrange_exec(), bake_rasterize(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_volume_simplify_level(), BLI_ewa_filter(), bmo_mirror_exec(), bsdf_hair_huang_eval_r(), bsdf_hair_huang_eval_residual(), button2d_geom_draw_backdrop(), ceil(), ceil_to_int(), clampto_evaluate(), compute_bbone_segment_boundaries(), cylinder_project_exec(), QuadDice::dice(), draw_image_cache(), draw_movieclip_cache(), blender::draw::drw_subdiv_compute_dispatch(), dynamicPaint_prepareEffectStep(), ED_scene_fps_average_accumulate(), ED_view3d_backbuf_sample_size_clamp(), blender::ui::BuildOnlyVisibleButtonsHelper::fill_layout_after_visible(), blender::geometry::find_best_fit_for_island(), floor_power_of_10(), blender::noise::fractal_voronoi_distance_to_edge(), fractal_voronoi_distance_to_edge(), blender::noise::fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), Integrator::get_adaptive_sampling(), blender::compositor::ScaleFixedSizeOperation::get_area_of_interest(), get_parallel_lines_draw_steps(), blender::compositor::ScaleOperation::get_scale_area_of_interest(), blender::ed::space_node::viewer_linking::get_viewer_node_position_candidates(), nlastrip_fix_resize_overlaps(), plane_marker_size_len_in_pixels(), rasterize_half(), blender::eevee::DepthOfField::render(), render_border_exec(), blender::io::obj::round_float_to_n_digits(), blender::eevee::sampling_web_ring_count_get(), blender::compositor::ScaleOperation::scale_area(), screen_global_header_size(), sequencer_view_zoom_ratio_exec(), sphere_project_exec(), svm_math(), blender::eevee::ShadingView::sync(), blender::nodes::try_dispatch_float_math_fl_to_fl(), ui_draw_but_curve_grid(), ui_item_enum_expand_elem_exec(), ui_item_rna_size(), ui_litem_estimate_grid_flow(), ui_litem_grid_flow_compute(), ui_text_icon_width_ex(), UI_view2d_dot_grid_draw(), uv_cylinder_project(), uv_sphere_project(), valuefn(), vfont_to_curve(), and widget_scroll().

◆ copysignf

◆ cosf

#define cosf ( x)    trigmode::cos(float(x))

Definition at line 309 of file device/metal/compat.h.

◆ coshf

#define coshf ( x)    cosh(float(x))

◆ expf

#define expf ( x)    trigmode::exp(float(x))

Definition at line 311 of file device/metal/compat.h.

◆ fabsf

#define fabsf ( x)    fabs(float(x))

Definition at line 288 of file device/metal/compat.h.

Referenced by _final_goal(), _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), abs_v2(), abs_v2_v2(), abs_v3(), abs_v3_v3(), abs_v4(), abs_v4_v4(), action_flip_pchan(), actkeys_viewall(), add_vertex_invoke(), add_weighted_edge(), alter_co(), angle_close(), blender::geometry::angle_match(), annotation_draw_stroke_2d(), annotation_draw_stroke_3d(), annotation_draw_stroke_buffer(), annotation_stroke_filtermval(), blender::ed::object::apply_objects_internal(), Hair::apply_transform(), PointCloud::apply_transform(), area_light_eval(), area_light_intersect(), area_light_sample(), area_light_spread_clamp_light(), area_light_tree_parameters(), area_poly_v2(), area_tri_v2(), axis_dominant_v3(), axis_dominant_v3_max(), axis_dominant_v3_ortho_single(), axis_dominant_v3_single(), axis_dominant_v3_to_m3(), axisProjection(), background_portal_pdf(), background_portal_sample(), bake_differentials(), bake_ibuf_normalize_displacement(), blender::gpu::MTLShader::bake_pipeline_state(), bc_in_range(), bevel_vert_construct(), blender::ed::object::bias_tangent_normal_pixels(), BKE_bone_parent_transform_calc_from_matrices(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), BKE_camera_object_dof_distance(), BKE_curve_bevelList_make(), BKE_curve_correct_bezpart(), BKE_fcurve_correct_bezpart(), BKE_mask_spline_feather_collapse_inner_loops(), BKE_mask_spline_feather_resolution(), BKE_maskrasterize_handle_sample(), BKE_mesh_calc_volume(), BKE_mesh_uv_vert_map_create(), BKE_nlastrip_within_bounds(), BKE_nurb_direction_switch(), BKE_pchan_bbone_spline_params_get(), BKE_texture_mapping_init(), BKE_tracking_max_distortion_delta_across_bound(), blend_color_difference_float(), blender_camera_focal_distance(), BLI_box_pack_2d(), BLI_dial_angle(), BLI_easing_elastic_ease_in(), BLI_easing_elastic_ease_in_out(), BLI_easing_elastic_ease_out(), BLI_jitterate1(), BLI_jitterate2(), BLI_noise_generic_noise(), BLI_noise_generic_turbulence(), BLI_noise_mg_ridged_multi_fractal(), BLI_polyfill_beautify_quad_rotate_calc_ex(), BLI_rctf_compare(), BLI_rctf_rotate_expand(), BLI_str_format_byte_unit_compact(), BLI_str_format_decimal_unit(), BLI_str_format_integer_unit(), BLI_uvproject_from_view(), block_align_proximity_compute(), blender::compositor::blur_pixel(), bm_decim_build_edge_cost_single(), bm_decim_build_edge_cost_single__topology(), bm_decim_build_edge_cost_single_squared__topology(), bm_edge_is_delimit(), BM_face_calc_area_uv(), bm_face_subset_calc_planar(), bm_loop_flip_disp(), BM_mesh_bevel(), bm_mesh_calc_uvs_sphere_face(), BM_mesh_edgeloops_calc_order(), bm_vert_collapse_is_degenerate(), bm_vert_tri_find_unique_edge(), bmo_create_monkey_exec(), bmo_dissolve_degenerate_exec(), bmo_mirror_exec(), bmo_smooth_vert_exec(), bmo_subdivide_edgering_exec(), bmo_subdivide_edges_exec(), bridge_loop_pair(), brush_edit_apply(), bsdf_alloc(), bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_velvet_eval(), bsdf_ashikhmin_velvet_sample(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_energy_scale(), bsdf_hair_huang_eval(), bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), bsdf_microfacet_estimate_albedo(), bsdf_microfacet_eval(), bsdf_microfacet_sample(), bsdf_ray_portal_setup(), bsdf_sheen_setup(), bsdf_transparent_setup(), bssrdf_alloc(), bssrdf_burley_root_find(), bssrdf_setup(), btFabs(), bvh_clamp_direction(), bvhtree_ray_cast_data_precalc(), calc_bbox(), calc_bevel_sin_cos(), blender::ed::sculpt_paint::auto_mask::calc_cavity_factor(), blender::imbuf::transform::calc_coverage(), calc_tangent_spaces(), mikk::Mikktspace< Mesh >::calcTexArea(), blender::nodes::node_shader_tex_wave_cc::WaveFunction::call(), camera_distance(), blender::compositor::check_corners(), check_zone(), choose_winner(), cloth_calc_spring_force(), cloth_collision_impulse_vert(), cmp_uv(), blender::compositor::color_diff(), color_sample_remove_cost(), colorfn(), compare_ff(), compare_ff_relative(), compare_floats(), compare_floats(), compare_size_v3v3(), compare_threshold_relative(), compatible_eul(), TextureMapping::compute_transform(), compute_volume(), computeBindWeights(), computeImplictRotations(), constrain_scale_to_boundary(), constraint_snap_plane_to_edge(), constraintSizeLim(), blender::bke::mesh::corner_fan_space_define(), createTransEditVerts(), cubemap_glob(), cuboid_do(), curve_nurb_select_similar_type(), damptrack_do_transform(), dial_ghostarc_draw(), dial_ghostarc_get_angles(), differential_dudv(), direction_to_fisheye_lens_polynomial(), dist_Chebychev(), dist_Manhattan(), dist_Minkovsky(), dist_MinkovskyH(), dist_squared_to_projected_aabb(), dist_tent_v3f3(), dist_to_plane3_v3(), dist_to_plane_v3(), blender::ed::sculpt_paint::do_clay_brush(), do_kink(), blender::ed::sculpt_paint::color::do_paint_brush_task(), do_physical_effector(), do_projectpaint_soften(), do_projectpaint_soften_f(), do_rough(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_versions_291_fcurve_handles_limit(), do_vert_pair(), dot_v3_array_find_max_index(), DRW_object_axis_orthogonal_to_view(), DRW_view_create_with_zoffset(), dvar_eval_rotDiff(), ED_armature_ebone_roll_to_vector(), ED_markers_find_nearest_marker(), ED_region_panels_layout_ex(), ED_select_similar_compare_float(), ED_view3d_polygon_offset(), ed_view3d_project__internal(), ED_view3d_quat_to_axis_view(), ED_view3d_smooth_view_ex(), ED_view3d_win_to_3d(), ED_view3d_win_to_3d_on_plane(), edbm_extrude_edge_exclude_mirror(), edbm_face_split_by_edges_exec(), edbm_fill_grid_vert_tag_angle(), edbm_select_axis_exec(), edbm_spin_exec(), blender::imbuf::transform::edge_aa(), edge_slide_apply_elem(), blender::draw::edituv_get_edituv_stretch_angle(), effector_falloff(), eh_on_plane(), elastic_blend(), emissive_pdf(), evaluate_curve_type_object(), fabs(), fabs(), fabs(), fabs(), fast_acosf(), mikk::fast_acosf(), fast_asinf(), fast_atan2f(), fast_atanf(), fast_cosf(), fast_coshf(), fast_erff(), fast_expm1f(), fast_ierff(), fast_logb(), fast_safe_powf(), fast_sincosf(), fast_sinf(), fast_sinhf(), fast_sinpif(), fast_tanhf(), fcurve_eval_keyframes_interpolate(), fcurve_eval_samples(), film_adaptive_sampling_convergence_check(), find_bbone_segment_index_curved(), fisheye_lens_polynomial_to_direction(), flyApply(), flyEvent(), followtrack_fit_frame(), fresnel_dielectric_cos(), fresnel_dielectric_polarized(), geodesic_distance_propagate_across_triangle(), get_auto_filter(), blender::geometry::PackIsland::get_diagonal_support(), get_graph_keyframe_extents(), get_keyframe_extents(), blender::compositor::get_pixel_saturation(), gizmo_get_idot(), blender::ed::space_node::gizmo_node_crop_prop_matrix_get(), blender::ed::space_node::gizmo_node_crop_prop_matrix_set(), GPENCIL_cache_init(), GPENCIL_render_init(), GPENCIL_render_result_z(), gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), GPU_program_point_size(), guiding_phase_init(), hair_alpha_angles(), hsl_to_rgb(), hsl_to_rgb(), hsv_to_rgb(), IDP_EqualsProperties_ex(), image_buf_fill_checker_slice(), image_camera_background_matrix_get(), blender::workbench::DofPass::init(), blender::ed::sculpt_paint::expand::init_from_face_set_boundary(), initFlyInfo(), initWalkInfo(), interp_dot_slerp(), interp_line_v3_v3v3v3(), interp_weights_poly_v2(), interp_weights_poly_v3(), intersect_line_tri(), BoundBox::intersects(), invert_m3_m3_ex(), invert_m4_m4_fallback(), GlossyBsdfNode::is_isotropic(), MetallicBsdfNode::is_isotropic(), is_orthogonal_m3(), is_orthogonal_m4(), is_orthonormal_m3(), is_orthonormal_m4(), is_uniform_scaled_m3(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), isect_line_plane_v3(), isect_planes_v3_fn(), isect_sweeping_sphere_tri_v3(), isPlaneProjectionViewAligned(), knife_find_line_hits(), laplaciansmoothModifier_do(), large_rotation_limit(), len_manhattan_v2(), len_manhattan_v3(), light_tree_importance(), LightTreeEmitter::LightTreeEmitter(), line_clip_rect2f(), line_isect_x(), line_isect_y(), logistic(), M_Geometry_intersect_sphere_sphere_2d(), blender::compositor::BlurBaseOperation::make_dist_fac_inverse(), make_orthonormals(), make_unit_square_map(), map_to_sphere(), mat3_align_axis_to_v3(), mat3_normalized_to_compatible_eul(), mat3_normalized_to_compatible_eulO(), mat3_normalized_to_eul(), mat3_normalized_to_eulO(), mat4_to_size_fix_shear(), math_matrix_jacobi_eigendecomposition(), mball_select_similar_type(), mesh_symmetry_snap_exec(), meshdeform_matrix_solve(), microfacet_beckmann_sample_vndf(), microfacet_ggx_preserve_energy(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), mouse_over_key_get_from_strip(), move_profile_plane(), move_weld_profile_planes(), mul_project_m4_v3(), mul_v2_project_m4_v3(), mul_v3_project_m4_v3(), nearly_parallel(), nearly_parallel_normalized(), nlastrip_get_frame_actionclip(), nlastrip_get_influence(), noise_ridged_multi_fractal(), noise_ridged_multi_fractal(), noise_ridged_multi_fractal(), noise_ridged_multi_fractal(), nonzerof(), mikk::not_zero(), nr_distance_to_edge(), blender::ed::sculpt_paint::object_sculpt_mode_enter(), blender::draw::overlay::Cameras::object_sync(), blender::ed::object::object_transform_axis_target_modal(), offset_in_plane(), offset_meet(), offset_meet_edge(), orthogonalize_stable(), OVERLAY_camera_cache_populate(), OVERLAY_grid_init(), blender::geometry::p_chart_pin_positions(), blender::geometry::p_chart_uv_area(), blender::geometry::p_edge_implicit_seam(), paint_2d_lift_soften(), paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_stroke_overlapped_curve(), particles_fluid_step(), PE_hide_keys_time(), phase_draine(), phase_draine_sample(), phase_draine_sample_cos(), phase_fournier_forand(), phase_fournier_forand_impl(), phase_fournier_forand_newton(), phase_henyey_greenstein(), phase_henyey_greenstein_sample(), pingpongf(), pingpongf(), pipe_test(), point_light_mnee_sample_update(), position_tail_on_spline(), precalc_wipe_zone(), prepare_linehits_for_cut(), blender::ed::sculpt_paint::project_brush_radius(), project_bucket_clip_face(), project_paint_uvpixel_mask(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_get_texture(), quad_calc_error(), quat_split_swing_and_twist(), quat_to_axis_angle(), quat_to_mat3(), radial_control_paint_curve(), ramp_blend(), rasterize_half(), ray_offset(), ray_triangle_intersect(), ray_triangle_intersect_self(), RE_filter_value(), recalc_face_normals_find_index(), region_position_is_over_marker(), blender::eevee::DepthOfField::render(), blender::eevee::MotionBlurModule::render(), rgb_to_hsv(), rna_float_print(), sb_detect_face_pointCached(), sculpt_project_v3_normal_align(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), sequencer_preview_get_rect(), set_axis(), blender::eevee::LightModule::set_view(), shell_angle_to_dist(), shell_v2v2_mid_normalized_to_dist(), shell_v2v2_normalized_to_dist(), shell_v3v3_mid_normalized_to_dist(), shell_v3v3_normalized_to_dist(), shrinkwrap_snap_with_side(), similar_face_select_exec(), simpleDeform_bend(), SimpleDeformModifier_do(), SkyTextureNode::simplify_settings(), sizelike_evaluate(), slide_check_corners(), smooth_view_rect_to_fac(), smoothminf(), smoothminf(), snap_source_closest_fn(), snap_to_superellipsoid(), snoise_1d(), snoise_2d(), snoise_3d(), snoise_4d(), softbody_apply_forces(), softbody_step(), spherical_stereo_transform(), sphg_dir(), splineik_evaluate_bone(), spot_light_mnee_sample_update(), state_calc_co_pair_fac(), state_isect_co_exact(), state_isect_co_pair(), blender::draw::statvis_calc_thickness(), stencil_fit_image_aspect_exec(), step_cost_3_v2_ex(), step_cost_3_v3_ex(), stitch_check_edges_stitchable(), stitch_check_uvs_stitchable(), blender::animrig::subdivide_nonauto_handles(), surface_determineForceTargetPoints(), surface_shader_ao(), surface_shader_average_normal(), surface_shader_average_roughness(), svd_m4(), svm_math(), svm_node_closure_bsdf(), svm_node_layer_weight(), svm_node_set_bump(), svm_node_tex_image_box(), svm_wave(), switchdirection_knots(), test_float_state(), test_polyfill_winding(), test_sin_cos_from_fraction_symmetry(), tex_tri(), texture_value_blend(), transdata_elem_rotate(), transform_constraint_snap_axis_to_edge(), transform_constraint_snap_axis_to_face(), transform_convert_clip_mirror_modifier_apply(), transform_decompose(), transform_equal_threshold(), transform_uniform_scale(), tri_corner_test(), triangle_light_pdf(), triangle_light_pdf_area_sampling(), triangle_light_sample(), blender::nodes::try_dispatch_float_math_fl_fl_fl_to_fl(), turb(), ui_block_align_calc(), ui_color_picker_rgb_round(), ui_do_button(), ui_drag_toggle_set(), ui_update_window_matrix(), ui_view2d_curRect_validate_resize(), UNUSED_FUNCTION(), unwrap_exec(), update_location_for_2d_curve(), blender::compositor::ChromaMatteOperation::update_memory_buffer_partial(), blender::compositor::ColorMatteOperation::update_memory_buffer_partial(), blender::compositor::DifferenceMatteOperation::update_memory_buffer_partial(), blender::compositor::KeyingClipOperation::update_memory_buffer_partial(), blender::compositor::MapRangeOperation::update_memory_buffer_partial(), blender::compositor::MathCompareOperation::update_memory_buffer_partial(), blender::compositor::MixDifferenceOperation::update_memory_buffer_row(), updateDuplicateActionConstraintSettings(), util_cdf_evaluate(), blender::geometry::uv_parametrizer_average(), uv_rip_pairs_loop_change_sides_test(), v3d_cursor_plane_draw(), v3d_cursor_poject_surface_normal(), v3d_cursor_snap_update(), valuefn(), vec_to_quat(), blender::ed::object::vgroup_smooth_subset(), view3d_boxview_sync_axis(), view3d_interactive_add_begin(), view_axis_exec(), blender::draw::overlay::State::view_dist_get(), view_ghost_border_exec(), view_roll_angle(), view_zoomdrag_invoke(), view_zoomdrag_modal(), vieworbit_exec(), viewrotate_apply(), volume_draine_setup(), volume_fournier_forand_setup(), volume_henyey_greenstein_setup(), volume_tetrahedron_v3(), voronoi_distance(), blender::noise::voronoi_distance_to_edge(), voronoi_distance_to_edge(), blender::noise::voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), voronoiTex(), blender::ed::object::voxel_size_edit_invoke(), vTurb(), walkApply(), waveModifier_do(), weightvg_update_vg(), WIDGETGROUP_gizmo_draw_prepare(), wm_gesture_straightline_do_angle_snap(), wm_xr_navigation_fly_modal(), write_render_z_output(), and wval_difference().

◆ floorf

#define floorf ( x)    floor(float(x))

Definition at line 293 of file device/metal/compat.h.

Referenced by actkeys_previewrange_exec(), alpha_circle_mask(), blender::geometry::angle_wrap(), apply_keyb_grid(), applyNumInput(), applySeqSlide(), blender::math::bilinear_byte_impl(), blender::math::bilinear_fl_impl(), BKE_image_find_nearest_tile_with_offset(), BKE_paint_face_set_overlay_color_get(), BKE_pchan_bbone_deform_clamp_segment_index(), BKE_where_on_path(), BLF_position(), BLI_ewa_filter(), BLI_jitter_init(), BLI_jitterate1(), BLI_jitterate2(), BLI_noise_mg_fbm(), BLI_noise_mg_hetero_terrain(), BLI_noise_mg_hybrid_multi_fractal(), BLI_noise_mg_multi_fractal(), BLI_rcti_rctf_copy(), BLI_rcti_rctf_copy_floor(), BLI_rcti_rctf_copy_round(), BLI_str_format_byte_unit_compact(), BLI_str_format_integer_unit(), blender::nodes::node_shader_tex_brick_cc::BrickFunction::brick(), brush_painter_2d_refresh_cache(), brush_painter_2d_tex_mapping(), brush_painter_imbuf_partial_update(), brush_painter_mask_imbuf_partial_update(), blender::nodes::node_shader_map_range_cc::build_float_stepped(), blender::nodes::node_shader_tex_checker_cc::NodeTexChecker::call(), blender::nodes::node_shader_tex_wave_cc::WaveFunction::call(), ceil_power_of_10(), blender::eevee::circle_to_polygon_angle(), blender::eevee::circle_to_polygon_radius(), closest_latice(), compatible_eul(), dial_ghostarc_draw(), dither_random_value(), draw_seq_in_view(), drawviewborder(), dynamic_paint_find_island_border(), ED_region_grid_draw(), ED_view3d_project_int_ex(), ED_view3d_project_short_ex(), eevee_engine_init(), evaluate_fcurve_ex(), fcurve_eval_samples(), floor(), floor(), floor(), floor_mod(), floor_to_int(), floored_fmod(), floorfrac(), flushTransGraphData(), blender::noise::fractal_voronoi_distance_to_edge(), fractal_voronoi_distance_to_edge(), blender::noise::fractal_voronoi_x_fx(), fractal_voronoi_x_fx(), fractf(), fractf(), blender::compositor::ScaleFixedSizeOperation::get_area_of_interest(), blender::ed::sculpt_paint::boundary::get_mesh_strength(), get_parallel_lines_draw_steps(), blender::compositor::ScaleOperation::get_scale_area_of_interest(), blender::ed::greasepencil::get_snapped_frame_number(), gpencil_frame_snap_nearestsec(), grid_cell_points_cb_ex(), hsv_clamp_v(), hsv_to_rgb(), hue_correct_apply_threaded(), ibuf_get_color_clip_bilerp(), image_buf_fill_checker_slice(), imagewrap(), imagewraposa_aniso(), blender::gpu::Texture::init_1D(), blender::gpu::Texture::init_2D(), blender::gpu::Texture::init_3D(), blender::gpu::Texture::init_cubemap(), initSeqSlide(), interp_v3_v3v3_uchar(), interp_v4_v4v4_uchar(), blender::math::interpolate_bilinear_wrap_byte(), kernel_tex_image_interp_bicubic(), kernel_tex_image_interp_tricubic(), LerpCurveSegmentMotionCV(), blender::animrig::make_new_fcurve_cyclic(), mod_inline(), MOD_meshcache_calc_range(), nla_draw_strip(), nlaedit_snap_exec(), nlastrip_get_frame_actionclip(), noise_fbm(), noise_fbm(), noise_fbm(), noise_fbm(), noise_hetero_terrain(), noise_hetero_terrain(), noise_hetero_terrain(), noise_hetero_terrain(), noise_hybrid_multi_fractal(), noise_hybrid_multi_fractal(), noise_hybrid_multi_fractal(), noise_hybrid_multi_fractal(), noise_multi_fractal(), noise_multi_fractal(), noise_multi_fractal(), noise_multi_fractal(), blender::geometry::pack_islands_optimal_pack(), paint_2d_convert_brushco(), blender::ed::sculpt_paint::paint_stroke_line_constrain(), blender::draw::particle_key_weight(), blender::noise::perlin_hetero_terrain(), blender::noise::perlin_hybrid_multi_fractal(), blender::noise::perlin_multi_fractal(), blender::compositor::MemoryBuffer::read(), regular_polygon_sample(), blender::animrig::remap_cyclic_keyframe_location(), blender::eevee::DepthOfField::render(), render_border_exec(), rgb_to_cpack(), safe_floored_modf(), safe_floored_modulo(), blender::compositor::ScaleOperation::scale_area(), seq_render_scene_strip(), blender::geometry::UVPackIsland_Params::setUDIMOffsetFromSpaceImage(), snap_bezier_nearest(), snap_bezier_nearestsec(), snap_curs_to_grid_exec(), snap_mask_layer_nearestsec(), snap_sel_to_grid_exec(), snapFrameTransform(), svm_checker(), svm_math(), svm_node_map_range(), svm_node_vector_map_range(), svm_wave(), tabulated_sobol_sample_1D(), tabulated_sobol_sample_2D(), tabulated_sobol_sample_3D(), tabulated_sobol_sample_4D(), tex_tri(), time_offset_fcurve_segment(), blender::geometry::Occupancy::trace_triangle(), blender::nodes::try_dispatch_float_math_fl_fl_to_fl(), blender::nodes::try_dispatch_float_math_fl_to_fl(), ui_but_hide_fraction(), ui_draw_colorband_handle(), UI_GetThemeColorBlend3ubv(), UI_GetThemeColorBlendShade3fv(), UI_GetThemeColorBlendShade3ubv(), UI_GetThemeColorBlendShade4fv(), UI_view2d_listview_view_to_cell(), UI_view2d_view_ortho(), unit_float_to_short(), blender::ed::sculpt_paint::update_curve_mask(), blender::compositor::HueSaturationValueCorrectOperation::update_memory_buffer_partial(), blender::compositor::MathFlooredModuloOperation::update_memory_buffer_partial(), blender::compositor::MathPowerOperation::update_memory_buffer_partial(), blender::compositor::MathSnapOperation::update_memory_buffer_partial(), uv_coords_isect_udim(), uv_nearest_grid_tile_distance(), uvedit_pack_islands_multi(), valuefn(), blender::ed::object::vgroup_quantize_subset(), blender::noise::voronoi_distance_to_edge(), voronoi_distance_to_edge(), blender::noise::voronoi_f1(), voronoi_f1(), blender::noise::voronoi_f2(), voronoi_f2(), blender::noise::voronoi_n_sphere_radius(), voronoi_n_sphere_radius(), blender::noise::voronoi_smooth_f1(), voronoi_smooth_f1(), wm_gesture_straightline_do_angle_snap(), wrap_angle(), blender::imbuf::transform::wrap_uv(), and wrapf().

◆ fmaxf

◆ fminf

◆ fmodf

◆ FN0

#define FN0 ( )

Definition at line 88 of file device/metal/compat.h.

◆ FN1

#define FN1 ( p1)    p1;

Definition at line 89 of file device/metal/compat.h.

◆ FN10

#define FN10 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10;

Definition at line 98 of file device/metal/compat.h.

◆ FN11

#define FN11 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11;

Definition at line 99 of file device/metal/compat.h.

◆ FN12

#define FN12 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12;

Definition at line 100 of file device/metal/compat.h.

◆ FN13

#define FN13 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13;

Definition at line 101 of file device/metal/compat.h.

◆ FN14

#define FN14 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14;

Definition at line 102 of file device/metal/compat.h.

◆ FN15

#define FN15 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15;

Definition at line 103 of file device/metal/compat.h.

◆ FN16

#define FN16 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16;

Definition at line 104 of file device/metal/compat.h.

◆ FN17

#define FN17 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16,
p17 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17;

Definition at line 105 of file device/metal/compat.h.

◆ FN18

#define FN18 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16,
p17,
p18 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18;

Definition at line 106 of file device/metal/compat.h.

◆ FN19

#define FN19 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16,
p17,
p18,
p19 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18; p19;

Definition at line 107 of file device/metal/compat.h.

◆ FN2

#define FN2 ( p1,
p2 )   p1; p2;

Definition at line 90 of file device/metal/compat.h.

◆ FN20

#define FN20 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16,
p17,
p18,
p19,
p20 )   p1; p2; p3; p4; p5; p6; p7; p8; p9; p10; p11; p12; p13; p14; p15; p16; p17; p18; p19; p20;

Definition at line 108 of file device/metal/compat.h.

◆ FN3

#define FN3 ( p1,
p2,
p3 )   p1; p2; p3;

Definition at line 91 of file device/metal/compat.h.

◆ FN4

#define FN4 ( p1,
p2,
p3,
p4 )   p1; p2; p3; p4;

Definition at line 92 of file device/metal/compat.h.

◆ FN5

#define FN5 ( p1,
p2,
p3,
p4,
p5 )   p1; p2; p3; p4; p5;

Definition at line 93 of file device/metal/compat.h.

◆ FN6

#define FN6 ( p1,
p2,
p3,
p4,
p5,
p6 )   p1; p2; p3; p4; p5; p6;

Definition at line 94 of file device/metal/compat.h.

◆ FN7

#define FN7 ( p1,
p2,
p3,
p4,
p5,
p6,
p7 )   p1; p2; p3; p4; p5; p6; p7;

Definition at line 95 of file device/metal/compat.h.

◆ FN8

#define FN8 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8 )   p1; p2; p3; p4; p5; p6; p7; p8;

Definition at line 96 of file device/metal/compat.h.

◆ FN9

#define FN9 ( p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9 )   p1; p2; p3; p4; p5; p6; p7; p8; p9;

Definition at line 97 of file device/metal/compat.h.

◆ GET_LAST_ARG

#define GET_LAST_ARG ( p0,
p1,
p2,
p3,
p4,
p5,
p6,
p7,
p8,
p9,
p10,
p11,
p12,
p13,
p14,
p15,
p16,
p17,
p18,
p19,
p20,
... )   p20

Definition at line 109 of file device/metal/compat.h.

◆ hypotf

#define hypotf ( x,
y )   hypot(float(x), float(y))

◆ kernel_assert

#define kernel_assert ( cond)

Definition at line 67 of file device/metal/compat.h.

◆ logf

#define logf ( x)    trigmode::log(float(x))

Definition at line 313 of file device/metal/compat.h.

◆ NULL

return NULL   0

Definition at line 315 of file device/metal/compat.h.

Referenced by __anyhit__kernel_optix_shadow_all_hit(), _bli_array_iter_span(), _bli_array_permute(), gim_hash_table< T >::_clear_table_memory(), gim_hash_table< T >::_destroy(), KDL::_EatSpace(), KDL::_EatUntilEndOfComment(), KDL::_EatUntilEndOfLine(), AttributeSet::add(), id_map< K, T, Flags >::add(), NodeType::add(), CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection(), OSLNode::add_input(), add_node(), CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_node(), add_nodes(), BVHBuild::add_reference_curves(), BVHBuild::add_reference_points(), BVHBuild::add_reference_triangles(), iTaSC::Scene::addCache(), iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), addedgetoscanlist(), addedgetoscanvert(), iTaSC::Scene::addSolver(), aligned_malloc(), libmv::aligned_malloc(), alloc_utf16_from_8(), alloc_utf_8_from_16(), btGenericMemoryPool::allocate(), btGenericPoolAllocator::allocate(), btPoolAllocator::allocate(), GuardedAllocator< T >::allocate(), MEM_Allocator< _Tp >::allocate(), btCollisionDispatcher::allocateCollisionAlgorithm(), btSimulationIslandManagerMt::allocateIsland(), iTaSC::CacheChannel::allocBuffer(), array< T, alignment >::array(), array< T, alignment >::array(), libmv::Image::AsArray3Df(), libmv::Image::AsArray3Du(), attr_create_subd_uv_map(), attr_create_uv_map(), ATTR_NONNULL(), ATTR_NONNULL(), AUD_getSoundFromPointer(), AUD_initPython(), available_devices_func(), Background::Background(), background_light_sample(), background_portal_pdf(), bake_func(), bc_getSceneCameraAnimData(), bc_getSceneLightAnimData(), bc_getSceneMaterialAnimData(), bc_getSceneObjectAction(), blender::gpu::MTLBatch::bind(), bl_locale_global_cache(), blender_camera_viewplane(), BLI_args_create(), BLI_args_parse(), BLI_astar_graph_free(), BLI_astar_graph_init(), BLI_astar_graph_solve(), BLI_astar_solution_clear(), BLI_astar_solution_free(), BLI_astar_solution_init(), BLI_box_pack_2d(), BLI_box_pack_2d_fixedarea(), BLI_bvhtree_balance(), BLI_bvhtree_find_nearest_projected(), BLI_bvhtree_get_bounding_box(), BLI_bvhtree_insert(), BLI_bvhtree_intersect_plane(), BLI_bvhtree_new(), BLI_bvhtree_overlap_ex(), BLI_bvhtree_range_query(), BLI_bvhtree_ray_cast_all_ex(), BLI_bvhtree_update_node(), BLI_cpu_brand_string(), BLI_current_working_dir(), BLI_dlrbTree_add(), BLI_dlrbTree_contains(), BLI_dlrbTree_free(), BLI_dlrbTree_init(), BLI_dlrbTree_insert(), BLI_dlrbTree_linkedlist_sync(), BLI_dlrbTree_search(), BLI_dlrbTree_search_exact(), BLI_dlrbTree_search_next(), BLI_dlrbTree_search_prev(), BLI_dynstr_append(), BLI_dynstr_clear(), BLI_dynstr_nappend(), BLI_dynstr_new(), BLI_dynstr_new_memarena(), BLI_expr_pylike_free(), BLI_expr_pylike_is_constant(), BLI_expr_pylike_is_using_param(), BLI_expr_pylike_is_valid(), BLI_file_alias_target(), BLI_filereader_new_gzip(), BLI_filereader_new_mmap(), BLI_filereader_new_zstd(), BLI_getenv(), BLI_ghash_calc_quality(), BLI_ghash_ensure_p(), BLI_ghash_ensure_p_ex(), BLI_ghash_haskey(), BLI_ghash_lookup(), BLI_ghash_lookup_p(), BLI_ghash_pop(), BLI_ghash_popkey(), BLI_ghash_replace_key(), BLI_ghashIterator_init(), BLI_gset_add(), BLI_gset_calc_quality(), BLI_gset_clear(), BLI_gset_clear_ex(), BLI_gset_copy(), BLI_gset_ensure_p_ex(), BLI_gset_free(), BLI_gset_haskey(), BLI_gset_lookup(), BLI_gset_pop(), BLI_gset_pop_key(), BLI_gset_remove(), BLI_gsqueue_is_empty(), BLI_gsqueue_pop(), BLI_gsqueue_push(), BLI_heap_clear(), BLI_heap_insert_or_update(), BLI_heap_new_ex(), BLI_linklist_append_nlink(), BLI_linklist_find(), BLI_linklist_insert_after(), BLI_linklist_lockfree_free(), BLI_linklist_lockfree_init(), BLI_linklist_lockfree_insert(), BLI_linklist_move_item(), BLI_linklist_reverse(), BLI_listbase_equal(), bli_load_symbols(), BLI_math_time_seconds_decompose(), BLI_memarena_calloc(), BLI_memarena_clear(), BLI_memarena_merge(), BLI_memblock_alloc(), BLI_memblock_iterstep(), BLI_memiter_alloc(), BLI_memiter_elem_first(), BLI_memiter_elem_first_size(), BLI_memiter_iter_init(), BLI_memiter_iter_step(), BLI_memiter_iter_step_size(), BLI_mempool_alloc(), BLI_mempool_clear_ex(), BLI_mempool_create(), BLI_mempool_findelem(), BLI_mempool_free(), BLI_mempool_iterstep(), BLI_mmap_open(), BLI_path_make_safe_filename_ex(), BLI_polyfill_beautify(), bli_private_symbols_loaded(), BLI_scanfill_calc(), BLI_scanfill_calc_ex(), BLI_scanfill_calc_self_isect(), BLI_scanfill_end(), BLI_scanfill_vert_add(), BLI_stack_clear(), BLI_stack_is_empty(), BLI_str_escape_find_quote(), BLI_str_partition(), BLI_str_partition_ex(), BLI_str_quoted_substr_range(), BLI_str_rpartition(), BLI_strcasestr(), BLI_strdup_null(), BLI_strncasestr(), BLI_system_backtrace(), BLI_task_parallel_mempool(), BLI_vsnprintf(), BLI_vsnprintf_rlen(), bli_windows_get_module_version(), BLI_windows_system_backtrace_run_trace(), BM_iter_init(), bsdf_alloc(), bssrdf_alloc(), btBatchedConstraints::btBatchedConstraints(), btCreateDefaultTaskScheduler(), btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(), btGetOpenMPTaskScheduler(), btGetPPLTaskScheduler(), btGetTBBTaskScheduler(), btGImpactBvh::btGImpactBvh(), btGImpactCollisionAlgorithm::btGImpactCollisionAlgorithm(), btGImpactQuantizedBvh::btGImpactQuantizedBvh(), btParallelFor(), btParallelSum(), btSimulationIslandManagerMt::btSimulationIslandManagerMt(), BVH2::build(), BVHBuild::build_node(), btSimulationIslandManagerMt::buildAndProcessIslands(), buildTreeBottomUp(), BVH(), BVHMixedSplit::BVHMixedSplit(), BVHNode::BVHNode(), BVHObjectBinning::BVHObjectBinning(), BVHSpatialSplit::BVHSpatialSplit(), bvhtree_nearest_projected_dfs_recursive(), bvhtree_ray_cast_data_precalc(), libmv::EuclideanReconstruction::CameraForImage(), libmv::ProjectiveReconstruction::CameraForImage(), ccl_try_align(), CCLIntersectContext::CCLIntersectContext(), btSoftBody::checkDeformableContact(), btSoftBody::checkDeformableFaceContact(), ShaderGraph::clean(), array< T, alignment >::clear(), gim_hash_table< T >::clear(), ImageHandle::clear(), iTaSC::CacheChannel::clear(), Mesh::clear_non_sockets(), clear_user_data(), iTaSC::Cache::clearCacheFrom(), CLG_color_support_get(), clg_ctx_error_action(), clg_ctx_fatal_action(), clg_ctx_filter_check(), CLG_ctx_free(), CLG_ctx_init(), clg_ctx_type_find_by_name(), clg_ctx_type_register(), CLG_logref_init(), clg_timestamp_ticks_get(), IESLightNode::clone(), closure_alloc(), closure_alloc_extra(), CollisionDispatcherUpdater::CollisionDispatcherUpdater(), FallbackImpl::colorSpaceGetName(), SVMCompiler::compile(), compile_shader_program(), SVMCompiler::compile_type(), blender::opensubdiv::compileKernel(), btGImpactCompoundShape::CompoundPrimitiveManager::CompoundPrimitiveManager(), btConvexHullInternal::compute(), BVHUnaligned::compute_aligned_boundbox(), BVHUnaligned::compute_aligned_boundbox(), FallbackImpl::configCreateFromEnv(), FallbackImpl::configGetColorSpace(), FallbackImpl::configGetColorSpaceNameByIndex(), FallbackImpl::configGetDisplay(), FallbackImpl::configGetLook(), FallbackImpl::configGetView(), BumpNode::constant_fold(), ShaderGraph::constant_fold(), Mesh::copy_center_to_motion_step(), blender::opensubdiv::GLComputeEvaluator::Create(), BVH::create(), Device::create(), create_func(), BVHBuild::create_leaf_node(), GeometryManager::create_volume_mesh(), CreateSegment(), btCollisionWorldImporter::createStridingMeshInterfaceData(), Attribute::data(), Attribute::data(), GuardedAllocator< T >::deallocate(), debug_flags_update_func(), decasteljau_bicubic(), ShaderGraph::deduplicate_nodes(), ShaderGraph::default_inputs(), DeformableContactConstraint::DeformableContactConstraint(), denoise_func(), MEM_CacheLimiterHandle< T >::destroy_if_possible(), btGImpactCollisionAlgorithm::destroyContactManifolds(), btGImpactCollisionAlgorithm::destroyConvexAlgorithm(), gim_array< T >::destroyData(), device_cuda_init(), device_hip_init(), device_optix_init(), LightManager::device_update_background(), ImageManager::device_update_slot(), ObjectManager::device_update_transforms(), ShaderInput::disconnect(), ShaderOutput::disconnect(), displacement_shader_eval(), BVHNode::dump_graph(), ShaderGraph::dump_graph(), blender::gpu::MTLVertBuf::duplicate_data(), dynamic_library_find_with_error(), dynamic_library_open_array_with_error(), KDL::EatWord(), edge_step(), EdgeDice::EdgeDice(), OSLRenderServices::environment(), IESTextParser::eof(), ImageLoader::equals(), ShaderNode::equals(), gim_hash_table< T >::erase_by_index(), gim_hash_table< T >::erase_by_index_unsorted(), libmv::EstimateFundamentalFromCorrespondences(), libmv::EstimateHomography2DFromCorrespondences(), libmv::EuclideanBundle(), libmv::EuclideanBundleCommonIntrinsics(), libmv::EuclideanIntersect(), QuadDice::eval_projected(), blender::opensubdiv::EvalOutputAPI::evaluateLimit(), blender::opensubdiv::EvalOutputAPI::evaluatePatchesLimit(), export_hair_curves(), ExportCurveSegments(), extrawindow_new(), btGenericPoolAllocator::failback_alloc(), InternalNode::fill_children(), filter_table(), ShaderGraph::finalize(), AttributeSet::find(), AttributeSet::find(), btHashMap< Key, Value >::find(), btHashMap< Key, Value >::find(), id_map< K, T, Flags >::find(), NodeType::find(), SVMCompiler::find_aov_nodes_and_dependencies(), ShaderGraph::find_dependencies(), SVMCompiler::find_dependencies(), NodeType::find_input(), find_nearest_cb(), find_nearest_n(), find_nearest_n_with_len_squared_cb(), CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::find_node(), NodeType::find_output(), iTaSC::CacheChannel::findItemEarlier(), iTaSC::CacheChannel::findItemOrLater(), btHashedSimplePairCache::findPair(), Scene::free_memory(), gearsTimerProc(), SVMCompiler::generate_closure_node(), GPUDevice::generic_alloc(), Geometry::Geometry(), BVHNode::get_aligned_space(), OSLRenderServices::get_attribute(), LeafNode::get_child(), CPUDevice::get_cpu_osl_memory(), MultiDevice::get_cpu_osl_memory(), IESTextParser::get_double(), get_enum_identifier(), Profiler::get_event(), get_grandparent(), ShaderManager::get_kernel_features(), IESTextParser::get_long(), OSLRenderServices::get_matrix(), blender::gpu::get_num_efficiency_cpu_cores(), blender::gpu::get_num_performance_cpu_cores(), Profiler::get_object(), get_object_attribute(), BVHObjectBinning::get_prim_bounds(), BVHObjectSplit::get_prim_bounds(), BVHReferenceCompare::get_prim_bounds(), BVHSpatialSplit::get_prim_bounds(), ColorSpaceManager::get_processor(), Profiler::get_shader(), get_sibling(), get_string(), get_text_datablock_content(), OSLRenderServices::get_texture_handle(), BVHSpatialSplit::get_unaligned_point(), get_uncle(), gim_hash_table< T >::get_value(), btGImpactMeshShape::getChildShape(), btGImpactMeshShape::getChildShape(), btGImpactMeshShapePart::getChildShape(), btGImpactMeshShapePart::getChildShape(), btCpuFeatureUtility::getCpuFeatures(), iTaSC::Cache::getCurrentCacheItem(), btSimulationIslandManagerMt::getIsland(), btCollisionDispatcher::getNewManifold(), btCollisionDispatcherMt::getNewManifold(), DualConInputReader::getNextTriangle(), getOrInitSolverBody(), getOrInitSolverBodyThreadsafe(), GHOST_SystemWin32::getPixelAtCursor(), iTaSC::Cache::getPreviousCacheItem(), btGImpactMeshShape::getPrimitiveManager(), MikkMeshWrapper< is_subd >::GetTexCoord(), GHOST_SystemWin32::getWindowUnderCursor(), ghash_entry_copy(), ghash_lookup_entry_ex(), ghash_lookup_entry_prev_ex(), ghash_new(), ghash_pop(), GHOST_WindowWin32::GHOST_WindowWin32(), gim_hash_table< T >::gim_hash_table(), GridQueue::GridQueue(), PrincipledBsdfNode::has_surface_bssrdf(), PrincipledBsdfNode::has_surface_emission(), PrincipledBsdfNode::has_surface_transparent(), heap_find_nearest_begin(), if(), IK_CreateSegment(), IK_CreateSolver(), IK_FreeSolver(), IK_Solve(), IK_SolverAddGoal(), IK_SolverAddGoalOrientation(), IK_SolverGetPoleAngle(), IK_SolverSetPoleVectorConstraint(), ImageHandle::image_memory(), image_parse_filepaths(), ImageManager::ImageManager(), iTaSC::Armature::initCache(), iTaSC::Scene::initialize(), btSoftBody::initializeFaceTree(), btSimulationIslandManagerMt::initIslandPools(), InnerNode::InnerNode(), ShaderNode::input(), ShaderNode::input(), insert_check_1(), insert_list(), internalDocs(), internalSetupContactConstraints(), KDL::JntArray::JntArray(), thread::join(), kernel_background_evaluate(), kernel_curve_shadow_transparency_evaluate(), libmv_autoTrackNew(), libmv_cameraIntrinsicsCopy(), libmv_cameraIntrinsicsCopy(), libmv_cameraIntrinsicsCreateFromOptions(), libmv_cameraIntrinsicsNew(), libmv_configureTrackRegionOptions(), libmv_detectFeaturesByte(), libmv_detectFeaturesFloat(), libmv_FrameAccessorNew(), libmv_reconstructionExtractIntrinsics(), libmv_samplePlanarPatchByte(), libmv_samplePlanarPatchFloat(), libmv_solveModal(), libmv_solveReconstruction(), libmv_tracksNew(), light_sample_shader_eval(), LinearSolver::LinearSolver(), linkedlist_sync_add_node(), list_sort_do(), OIIOImageLoader::load_pixels(), loggerwindow_new(), FallbackImpl::lookGetProcessSpace(), main(), main(), mainwindow_new(), array< T, alignment >::mem_allocate(), array< T, alignment >::mem_free(), memarena_buf_free_all(), memiter_chunk_step(), memiter_init(), mempool_chunk_add(), mempool_iter_threadsafe_create(), mempool_iter_threadsafe_destroy(), mempool_iter_threadsafe_step(), mempool_threadsafe_iternew(), merge_func(), merge_lists(), Mesh::Mesh(), mikk_compute_tangents(), MikkMeshWrapper< is_subd >::MikkMeshWrapper(), libmv::ModalSolver(), GPUDevice::move_textures_to_host(), blender::gpu::MTLContext::MTLContext(), multitestapp_free_extrawindow(), multitestapp_new(), NODE_ABSTRACT_DEFINE(), NODE_ABSTRACT_DEFINE(), non_recursive_bvh_div_nodes(), Object::Object(), btCollisionWorld::objectQuerySingleInternal(), OCIO_exit(), openSubdiv_createEvaluatorCache(), openSubdiv_createEvaluatorFromTopologyRefiner(), openSubdiv_createEvaluatorInternal(), openSubdiv_getGLSLPatchBasisSource(), KDL::JntArray::operator()(), libmv::scoped_array< T >::operator[](), options_parse(), osl_closure_dielectric_bsdf_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_microfacet_multi_ggx_aniso_setup(), osl_closure_microfacet_setup(), osl_closure_sheen_setup(), osl_zero_albedo(), ShaderNode::output(), ShaderNode::output(), BVH2::pack_instances(), Mesh::pack_normals(), parallel_mempool_func(), parse_get_cmp_func(), path_get(), path_specials(), pf_coord_remove(), libmv::EuclideanReconstruction::PointForTrack(), libmv::ProjectiveReconstruction::PointForTrack(), polyedge_beauty_cost_update_single(), GridQueue::popQueue(), primitive_motion_vector(), primitive_ptex(), primitive_tangent(), primitive_uv(), processEvent(), btGenericPoolAllocator::push_new_pool(), GridQueue::pushQueue(), CCL_NAMESPACE_BEGIN::pylong_as_voidptr_typesafe(), python_thread_state_restore(), range_search(), range_search_with_len_squared_cb(), ray_quad_intersect(), btCollisionWorld::rayTestSingleInternal(), RB_shape_delete(), RB_shape_new_box(), RB_shape_new_capsule(), RB_shape_new_compound(), RB_shape_new_cone(), RB_shape_new_convex_hull(), RB_shape_new_cylinder(), RB_shape_new_gimpact_mesh(), RB_shape_new_sphere(), RB_shape_new_trimesh(), RB_shape_trimesh_update(), BlenderOutputDriver::read_render_tile(), read_shader_output(), btSoftBody::rebuildNodeTree(), btConvexHullInternal::Vertex::receiveNearbyFaces(), recursive_tree_free_nodes(), NodeType::register_output(), libmv::scoped_array< T >::release(), ShaderNode::remove_input(), IK_QSegment::RemoveChild(), btHashedSimplePairCache::removeOverlappingPair(), BlenderSession::render(), render_func(), btSoftBodyHelpers::ReoptimizeLinkOrder(), array< T, alignment >::reserve(), libmv::internal::LookupWarpGrid::Reset(), DebugFlags::CUDA::reset(), DebugFlags::HIP::reset(), DebugFlags::Metal::reset(), Profiler::reset(), reset_func(), BlenderSession::reset_session(), InnerNode::reset_unused_children(), libmv::ArrayND< T, N >::Resize(), array< T, alignment >::resize(), blender::opensubdiv::StackOrHeapArray< T, kNumMaxElementsOnStack >::resize(), rotate_left(), rotate_right(), BVHBuild::run(), thread::run(), savePNGImage(), scanfill(), scanfill_preprocess_self_isect(), scene_intersect(), session_exit(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set(), BVHNode::set_aligned_space(), id_map< K, T, Flags >::set_default(), set_enum(), Shader::set_graph(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set_param(), EdgeDice::set_vert(), btDeformableContactProjection::setProjection(), MikkMeshWrapper< is_subd >::SetTangentSpace(), setupSpatialGridBatchesMt(), setViewPortGL(), Shader::Shader(), btConvexHullInternal::shrink(), btSimulationIslandManagerMt::solveIsland(), BVHObjectSplit::split(), BVHSpatialSplit::split(), BVHSpatialSplit::split_curve_primitive(), BVHSpatialSplit::split_curve_reference(), BVHSpatialSplit::split_point_primitive(), BVHSpatialSplit::split_point_reference(), BVHSpatialSplit::split_triangle_reference(), Profiler::start(), array< T, alignment >::steal_data(), array< T, alignment >::steal_pointer(), Profiler::stop(), SubdParams::SubdParams(), surface_shader_bsdf_eval(), surface_shader_eval(), svm_node_aov_check(), svm_node_attr(), svm_node_attr_bump_dx(), svm_node_attr_bump_dy(), svm_node_closure_bsdf(), svm_node_normal_map(), svm_node_tangent(), svm_node_vector_displacement(), svm_node_vertex_color(), svm_node_vertex_color_bump_dx(), svm_node_vertex_color_bump_dy(), SVMCompiler::SVMCompiler(), sweep_up(), gim_hash_table< T >::switch_to_sorted_array(), sync_func(), system_cpu_brand_string(), system_physical_ram(), system_windows_version_at_least(), libmv::TemplatedTrackRegion(), Mesh::tessellate(), libmv::TEST(), OSLRenderServices::texture(), OSLRenderServices::texture3d(), time_dt(), MEM_CacheLimiter< T >::touch(), mv::AutoTrack::TrackMarker(), triangle_world_space_vertices(), btGImpactMeshShapePart::TrimeshPrimitiveManager::TrimeshPrimitiveManager(), ufopen(), umkdir(), btGImpactMeshShapePart::TrimeshPrimitiveManager::unlock(), libmv::internal::LookupWarpGrid::Update(), blender::opensubdiv::VolatileEvalOutput< SRC_VERTEX_BUFFER, EVAL_VERTEX_BUFFER, STENCIL_TABLE, PATCH_TABLE, EVALUATOR, DEVICE_CONTEXT >::updateSettings(), uputenv(), util_aligned_free(), util_aligned_malloc(), ImageHandle::vdb_loader(), ShaderGraph::verify_volume_output(), OpenGLDisplayDriver::vertex_buffer_update(), view_draw_func(), TaskPool::wait_work(), wayland_dynload_client_exit(), wayland_dynload_cursor_exit(), wayland_dynload_egl_exit(), wayland_dynload_libdecor_exit(), window_main_loop(), BlenderOutputDriver::write_render_tile(), wWinMain(), xml_read_node(), xml_read_shader_graph(), zstd_ensure_cache(), zstd_read_seekable(), iTaSC::Armature::~Armature(), btConstraintSolverPoolMt::~btConstraintSolverPoolMt(), btConvexHullInternal::Edge::~Edge(), IK_QSegment::~IK_QSegment(), MEM_CacheLimiterCClass::~MEM_CacheLimiterCClass(), Profiler::~Profiler(), libmv::scoped_array< T >::~scoped_array(), and scoped_timer::~scoped_timer().

◆ offsetof

#define offsetof ( t,
d )   __builtin_offsetof(t, d)

Definition at line 69 of file device/metal/compat.h.

Referenced by _bm_select_history_check(), _bm_select_history_remove(), action_groups_add_new(), AnimationImporter::add_bone_fcurve(), add_to_modifier_list(), ANIM_keyingset_find_id(), ANIM_keyingset_get_from_idname(), ANIM_keyingset_info_find_name(), arg_handle_engine_set(), blender::ed::object::bake(), BKE_action_group_find_name(), BKE_addon_find(), BKE_addon_remove_safe(), BKE_animsys_get_nla_keyframing_context(), BKE_asset_catalog_path_list_has_path(), BKE_asset_metadata_tag_add(), BKE_asset_metadata_tag_ensure(), BKE_collection_child_find(), BKE_collection_exporter_name_set(), BKE_collection_has_object_recursive(), BKE_collection_has_object_recursive_instanced(), BKE_constraint_unique_name(), BKE_constraints_find_name(), BKE_effectors_create(), BKE_fmodifier_name_set(), BKE_freestyle_lineset_unique_name(), BKE_gpencil_layer_addnew(), BKE_gpencil_layer_named_get(), BKE_gpencil_palette_addnew(), BKE_gpencil_palette_ensure(), BKE_gpencil_palettecolor_addnew(), BKE_image_acquire_multilayer_view_ibuf(), BKE_image_ensure_viewer_views(), BKE_image_is_stereo(), BKE_image_render_write(), BKE_keyblock_add(), BKE_keyblock_find_name(), BKE_keyconfig_pref_ensure(), BKE_keyingset_add(), BKE_layer_collection_sync(), BKE_lib_override_library_main_resync(), BKE_lib_override_library_property_operation_find(), BKE_libblock_find_name(), BKE_mask_clipboard_paste_to_layer(), BKE_mask_layer_unique_name(), BKE_modifier_unique_name(), BKE_modifiers_findby_name(), BKE_nla_action_stash(), BKE_nlatrack_insert_after(), BKE_nlatrack_insert_before(), BKE_packedfile_unpack_image(), BKE_paint_get_brush_type_offset_from_paintmode(), BKE_pose_add_group(), BKE_pose_channel_find_name(), BKE_preferences_asset_library_find_by_name(), BKE_preferences_asset_library_name_set(), BKE_preferences_asset_shelf_settings_get(), BKE_preferences_extension_repo_find_by_module(), BKE_preferences_extension_repo_module_set(), BKE_preferences_extension_repo_name_set(), BKE_scene_add_render_view(), BKE_scene_multiview_is_stereo3d(), BKE_scene_multiview_num_views_get(), BKE_scene_multiview_view_filepath_get(), BKE_scene_multiview_view_suffix_get(), BKE_scene_object_find(), BKE_shaderfx_findby_name(), BKE_shaderfx_unique_name(), BKE_tracking_object_unique_name(), BKE_tracking_plane_track_unique_name(), BKE_tracking_track_unique_name(), BKE_undosys_stack_has_undo(), BKE_undosys_step_find_by_name(), BKE_view_layer_add(), BKE_view_layer_rename(), BKE_workspace_owner_id_check(), blo_do_versions_290(), blo_update_defaults_scene(), BLO_update_defaults_startup_blend(), BPyGPUFrameBuffer_CreatePyObject(), BPyGPUTexture_CreatePyObject(), cmp_node_image_add_pass_output(), collection_find_parent(), collection_object_cache_fill(), blender::compositor::ImageNode::convert_to_operations(), blender::compositor::SwitchViewNode::convert_to_operations(), curve_smooth_radius_exec(), curve_smooth_tilt_exec(), curve_smooth_weight_exec(), data_dir_add(), DEG_get_evaluated_view_layer(), do_version_workspaces_after_lib_link(), do_version_workspaces_create_from_screens(), do_versions_after_linking_280(), do_versions_after_linking_290(), do_versions_after_linking_300(), do_versions_nodetree_customnodes(), do_versions_theme(), driver_add_new_variable(), driver_variable_unique_name(), drw_state_ensure_not_reused(), drw_state_prepare_clean_for_draw(), ED_armature_ebone_find_name(), edbm_fill_grid_prepare(), engine_render_view_layer(), fcurve_add_to_list(), blender::ed::asset::filter_matches_asset(), findOrientationName(), FRS_do_stroke_rendering(), get_multilayer_view_index(), blender::realtime_compositor::get_pass_index(), blender::realtime_compositor::get_view_index(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::ed::greasepencil::grease_pencil_layer_mask_add_exec(), IDP_GetPropertyFromGroup(), IDP_SyncGroupValues(), image_add_view(), image_foreach_cache(), image_save_single(), image_unpack_exec(), IMB_exr_channel_rect(), IMB_exr_get_handle_name(), imb_exr_get_layer(), imb_exr_get_pass(), IMB_exr_set_channel(), integrator_state_write_isect(), integrator_state_write_ray(), layer_collection_resync_create_recurse(), library_copy_data(), library_id_is_yet_read(), make_duplis_particle_system(), blender::ed::object::make_override_library_exec(), mesh_partial_ensure(), ml_addpass_cb(), ml_addview_cb(), movie_clip_foreach_cache(), blender::ed::outliner::namebutton_fn(), blender::bke::node_find_node_by_name(), blender::bke::node_foreach_cache(), blender::bke::node_unique_name(), paste_material_nodetree_ids_relink_or_clear(), blender::ed::space_node::NodeClipboard::paste_validate_id_references(), preview_get_world(), psys_unique_name(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), RE_engines_find(), RE_GetRenderLayer(), RE_RenderResult_is_stereo(), RE_RenderViewGetByName(), RE_WriteRenderViewsMovie(), read_file_dna(), rearrange_animchannel_islands(), render_image_update_pass_and_layer(), render_layer_add_pass(), render_result_clone_passes(), RNA_def_function(), RNA_struct_find_function(), RNA_struct_type_find_property_no_base(), scene_blend_read_data(), scene_foreach_cache(), screen_opengl_views_setup(), screen_render_single_layer_set(), separated_armature_fix_links(), SEQ_modifier_find_by_name(), SEQ_modifier_list_copy(), SEQ_modifier_unique_name(), sequencer_write_copy_paste_file(), sigbus_handler_remove(), sound_foreach_cache(), sound_unpack_exec(), switch_preview_floor_material(), TEST(), toolsystem_brush_type_binding_lookup(), tracks_map_merge(), ui_imageuser_pass_menu(), ui_list_ensure(), UI_panel_add_instanced(), UI_panel_category_active_find(), ui_panel_category_active_set(), UI_panel_category_find(), UI_panel_category_index_find(), UI_theme_init_default(), uiTemplatePreview(), undofont_free_data(), version_liboverride_rnacollections_insertion_object(), version_liboverride_rnacollections_insertion_object_constraints(), view_layer_add_used_lightgroups_exec(), viewlayer_aov_make_name_unique(), viewlayer_lightgroup_make_name_unique(), wm_file_history_find(), wm_file_read_report(), WM_gizmo_target_property_find(), wm_gizmogroup_find_by_type(), WM_gizmotype_target_property_find(), wm_jobs_timer(), wm_jobs_timer_end(), WM_keyconfig_active(), WM_keyconfig_ensure(), WM_keyconfig_new(), wm_macro_modal(), wm_xr_session_controller_aim_pose_find(), workspace_add_menu(), workspace_layout_find_exec(), workspace_layout_name_set(), workspace_relation_ensure_updated(), and workspace_relation_get_data_matching_parent().

◆ PARAMS_MAKER

#define PARAMS_MAKER ( ...)    GET_LAST_ARG(__VA_ARGS__, FN20, FN19, FN18, FN17, FN16, FN15, FN14, FN13, FN12, FN11, FN10, FN9, FN8, FN7, FN6, FN5, FN4, FN3, FN2, FN1, FN0)

Definition at line 110 of file device/metal/compat.h.

◆ powf

#define powf ( x,
y )   pow(float(x), float(y))

Definition at line 287 of file device/metal/compat.h.

◆ saturatef

◆ sinf

#define sinf ( x)    trigmode::sin(float(x))

Definition at line 308 of file device/metal/compat.h.

◆ sinhf

#define sinhf ( x)    sinh(float(x))

◆ sqrtf

#define sqrtf ( x)    trigmode::sqrt(float(x))

Definition at line 312 of file device/metal/compat.h.

Referenced by _bli_math_rsqrt(), arc_length(), area_element(), area_light_rect_sample(), area_light_spread_clamp_light(), area_sample(), atmosphere_intersection(), bevel_build_cutoff(), BKE_brush_calc_curve_factors(), BKE_brush_curve_strength(), BKE_brush_gen_radial_control_imbuf(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), BKE_curvemapping_changed(), BKE_maskrasterize_handle_sample(), BKE_mball_transform(), BKE_screen_view3d_zoom_from_fac(), blend(), blend_read_mdisps(), BLI_easing_circ_ease_in(), BLI_easing_circ_ease_in_out(), BLI_easing_circ_ease_out(), BLI_ewa_filter(), BLI_ewa_imp2radangle(), BLI_jitter_init(), BLI_jitterate1(), BLI_newton3d_solve(), blo_do_versions_300(), bm_corners_to_loops_ex(), BM_mesh_bevel(), bmesh_subd_falloff_calc(), brush_cut(), blender::ed::sculpt_paint::brush_delta_update(), brush_edit_apply(), bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_shirley_sample_first_quadrant(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_energy_scale(), bsdf_hair_huang_eval_r(), bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), bsdf_lambda_from_sqr_alpha_tan_n(), bsdf_microfacet_estimate_albedo(), bssrdf_dipole_compute_Rd(), btSqrt(), build_boundary_terminal_edge(), C_Matrix_OrthoProjection(), C_Matrix_Scale(), calc_bevel_sin_cos(), blender::geometry::calc_margin_from_aabb_length_sum(), calc_overlap(), blender::ed::sculpt_paint::pose::calc_squash_stretch_deform(), calctrackballvec(), calculate_average_color(), calculatePropRatio(), cg_filtered(), cloth_shrink_factor(), compute_2d_gabor_standard_deviation(), compute_3d_gabor_standard_deviation(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), computeBindWeights(), curvebounds(), curvemap_make_table(), density_falloff(), LightManager::device_update_lights(), direction_to_mirrorball(), dist_Minkovsky4(), dist_MinkovskyH(), dist_Real(), dist_seg_seg_v2(), dist_signed_to_plane3_v3(), dist_signed_to_plane_v3(), dist_to_line_segment_v2(), dist_to_line_segment_v3(), dist_to_line_v2(), dist_to_line_v3(), distfactor_to_bone(), do_kink_spiral_deform(), do_physical_effector(), do_projectpaint_thread(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), dquat_to_mat4(), blender::draw::drw_subdiv_compute_dispatch(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), ease_handle_axis(), ED_mask_feather_find_nearest(), ED_mask_point_find_nearest(), ED_view3d_update_viewmat(), edge_wind_vertex(), fast_acosf(), mikk::fast_acosf(), fast_asinf(), fast_ierff(), film_adaptive_sampling_convergence_check(), blender::eevee::film_filter_weight(), film_write_data_passes(), filter_gauss(), blender::geometry::find_best_fit_for_island(), find_nearest(), find_nearest_cb(), find_nearest_n_with_len_squared_cb(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), fisheye_to_direction(), fresnel_dielectric_cos(), geodesic_distance_propagate_across_triangle(), get_dupliface_transform_from_coords(), get_shortest_pattern_side(), blender::RandomNumberGenerator::get_unit_float3(), getLowestRoot(), gizmo_spot_blend_prop_matrix_get(), blender::geometry::guess_initial_scale(), HC_relaxation_iteration_uv(), hook_falloff(), imagewraposa_aniso(), blender::compositor::DirectionalBlurOperation::init_execution(), init_kelvinlet_grab(), init_mv_jit(), initialize2(), mikk::Mikktspace< Mesh >::initTriangle(), inversesqrtf(), ior_from_F0(), iridescence_airy_summation(), isect_line_sphere_v2(), isect_line_sphere_v3(), kelvinlet_scale(), kelvinlet_twist(), key_inside_circle(), laplacian_relaxation_iteration_uv(), len(), len(), len(), len_v2(), len_v2v2(), len_v2v2_int(), len_v3(), len_v4(), mikk::float3::length(), blender::ed::sculpt_paint::load_tex_cursor_task_cb(), blender::ed::sculpt_paint::load_tex_task_cb_ex(), lookat_m4(), blender::compositor::BlurBaseOperation::make_dist_fac_inverse(), map_to_sphere(), map_to_sphere(), map_to_tube(), marble_int(), mat3_normalized_to_quat_fast(), mat3_to_size_max_axis(), mat4_to_size_max_axis(), math_matrix_jacobi_eigendecomposition(), math_trimatrix_cholesky(), blender::geometry::OverlapMerger::merge_islands(), mesh_remap_bvhtree_query_nearest(), microfacet_beckmann_sample_vndf(), microfacet_fresnel(), microfacet_ggx_preserve_energy(), mirrorball_to_direction(), blender::color::mix_blend(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), nearest_add_in_range(), Normalize(), normalize_qt(), normalize_v2_v2_length(), normalize_v3_v3_length(), blender::draw::overlay::Lights::object_sync(), ortho_basis_v3v3_v3(), orthogonalize_stable(), osl_filterwidth_fdf(), OVERLAY_light_cache_populate(), blender::geometry::p_chart_lscm_transform_single_pin(), blender::geometry::p_face_stretch(), blender::workbench::Material::pack_data(), blender::geometry::pack_gobel(), blender::geometry::pack_island_xatlas(), blender::geometry::pack_islands_margin_fraction(), blender::geometry::pack_islands_optimal_pack(), paint_2d_ensure_tile_canvas(), paint_2d_gradient_fill(), blender::ed::sculpt_paint::paint_brush_update(), path_state_continuation_probability(), phase_draine(), phase_draine_sample_cos(), phase_rayleigh_sample(), point_light_sample(), point_light_tree_parameters(), precalc_wipe_zone(), precompute_ggx_E(), precompute_ggx_gen_schlick_s(), precompute_ggx_glass_E(), py_bvhtree_nearest_to_py_tuple(), Quaternion_magnitude_get(), ray_sphere_intersect(), blender::bke::pbvh::raycast_node_detail_bmesh(), RE_filter_value(), recalc_face_normals_find_index(), regular_polygon_sample(), relaxation_iteration_uv(), rule_avoid_collision(), safe_inverse_sqrtf(), safe_sqrtf(), safe_sqrtf(), samevolume_evaluate(), blender::eevee::Sampling::sample_ball(), blender::eevee::Sampling::sample_disk(), blender::eevee::Sampling::sample_spiral(), blender::eevee::sampling_web_ring_count_get(), QuadDice::scale_factor(), seq_select_seq_from_preview(), shrinkwrap_calc_nearest_vertex_cb_ex(), blender::geometry::signed_distance_fat_triangle(), sky_radiance_internal(), sky_radiance_nishita(), blender::compositor::smooth_mask(), sph_density_accum_cb(), sphere_normal_from_uv(), splineik_evaluate_bone(), spot_light_sample(), spot_light_tree_parameters(), sqrt(), sqrt(), sqrt(), sqrtf_signed(), square_roughness_node_insert(), stencil_fit_image_aspect_exec(), step_cost_3_v2_ex(), step_cost_3_v3_ex(), stretchto_evaluate(), surface_shader_average_roughness(), surface_shader_prepare_closures(), svd_m4(), svm_gradient(), svm_node_closure_bsdf(), blender::eevee::DepthOfField::sync(), blender::eevee::ShadingView::sync(), BlenderSync::sync_integrator(), target_project_edge(), target_project_solve_point_tri(), TEST(), TEST(), TEST(), TEST(), TEST(), transform_point_by_tri_v3(), ui_do_animate(), ui_do_button(), ui_hsvcircle_vals_from_pos(), ui_item_rna_size(), ui_numedit_but_UNITVEC(), blender::compositor::DilateErodeThresholdOperation::update_memory_buffer_partial(), blender::compositor::GammaUncorrectOperation::update_memory_buffer_partial(), uv_find_nearest_edge(), uv_find_nearest_vert(), blender::geometry::uv_parametrizer_average(), uv_sculpt_stroke_apply(), uv_sculpt_stroke_init(), valuefn(), vectorscope_draw_target(), vert2geom_task_cb_ex(), warpModifier_do(), waveModifier_do(), weightvg_do_map(), blender::math::whitepoint_to_temp_tint(), wood_int(), and Camera::world_to_raster_size().

◆ tanf

#define tanf ( x)    trigmode::tan(float(x))

Definition at line 310 of file device/metal/compat.h.

◆ tanhf

#define tanhf ( x)    tanh(float(x))

◆ trigmode

#define trigmode   fast

Definition at line 307 of file device/metal/compat.h.

◆ VOLUME_READ_LAMBDA

#define VOLUME_READ_LAMBDA ( function_call)
Value:
struct FnObjectRead { \
ccl_private MetalKernelContext *context; \
int state; \
\
VolumeStack operator()(const int i) const \
{ \
return context->function_call; \
} \
} volume_read_lambda_pass{kg, this, state};
const KernelGlobalsCPU *ccl_restrict KernelGlobals

Definition at line 199 of file device/metal/compat.h.

◆ VOLUME_WRITE_LAMBDA

#define VOLUME_WRITE_LAMBDA ( function_call)
Value:
struct FnObjectWrite { \
ccl_private MetalKernelContext *context; \
int state; \
\
void operator()(const int i, VolumeStack entry) const \
{ \
context->function_call; \
} \
} volume_write_lambda_pass{kg, this, state};

Definition at line 211 of file device/metal/compat.h.

Enumeration Type Documentation

◆ SamplerType

Enumerator
SamplerFilterNearest_AddressRepeat 
SamplerFilterNearest_AddressClampEdge 
SamplerFilterNearest_AddressClampZero 
SamplerFilterNearest_AddressMirroredRepeat 
SamplerFilterLinear_AddressRepeat 
SamplerFilterLinear_AddressClampEdge 
SamplerFilterLinear_AddressClampZero 
SamplerFilterLinear_AddressMirroredRepeat 
SamplerCount 

Definition at line 392 of file device/metal/compat.h.

Function Documentation

◆ make_float2()

ccl_device_forceinline float2 make_float2 ( const float x,
const float y )

Definition at line 224 of file device/metal/compat.h.

Referenced by area_light_max_extent(), area_light_spread_clamp_light(), area_light_tree_parameters(), as_float2(), attr_create_subd_uv_map(), attr_create_uv_map(), background_light_tree_parameters(), bake_offset_towards_center(), bsdf_ashikhmin_shirley_sample(), bsdf_hair_chiang_sample(), bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_sample(), bsdf_microfacet_sample(), bsdf_roughness_eta(), camera_sample(), compute_2d_gabor_kernel(), compute_2d_gabor_noise(), compute_2d_gabor_noise_cell(), compute_3d_gabor_kernel(), compute_3d_gabor_noise(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), AttributeConverter< blender::float2 >::convert(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float2 >(), BVHBuild::create_leaf_node(), BVHBuild::create_object_leaf_nodes(), dir_sph(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), distant_light_tree_parameters(), fabs(), float3_to_float2(), floor(), fmod(), fresnel_dielectric_polarized(), fresnel_iridescence(), get_float2(), hash_float2_to_float2(), hash_float3_to_float2(), hash_float4_to_float2(), hash_float_to_float2(), hash_float_to_float3(), integrate_camera_sample(), integrate_surface_bsdf_bssrdf_bounce(), integrator_init_from_bake(), map_to_sphere(), map_to_tube(), max(), microfacet_beckmann_sample_vndf(), min(), noise_texture_2d(), one_float2(), operator*(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator-(), operator/(), operator/(), operator/(), patch_eval_float2(), path_rng_2D(), power(), primitive_ptex(), primitive_surface_attribute_float2(), random_float2_offset(), random_float3_offset(), random_float4_offset(), ray_aabb_intersect(), ray_cone_intersect(), ray_infinite_cylinder_intersect(), regular_polygon_sample(), sample_uniform_disk(), EdgeDice::set_vert(), BlenderDisplayDriver::set_zoom(), sincos_phi(), sky_spherical_coordinates(), snoise_2d(), sobol_burley_sample_2D(), spot_light_tree_parameters(), subd_triangle_attribute_float2(), svm_brick(), svm_node_tex_gabor(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_noise(), svm_node_tex_voronoi(), svm_node_tex_white_noise(), tabulated_sobol_sample_2D(), TEST(), to_point(), triangle_attribute_float2(), triangle_light_tree_parameters(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), voronoi_smooth_f1(), Camera::world_to_raster_size(), xml_read_mesh(), and zero_float2().

◆ make_float3()

ccl_device_forceinline float3 make_float3 ( const float x,
const float y,
const float z )

Definition at line 229 of file device/metal/compat.h.

References z().

Referenced by ShaderManager::add_default(), ApplyPrimvars(), area_light_valid_ray_segment(), atmosphere_intersection(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_motion_from_velocity(), attr_create_pointiness(), bsdf_aniso_D(), bsdf_ashikhmin_shirley_sample(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_albedo(), bsdf_hair_huang_eval(), bsdf_hair_huang_eval_r(), bsdf_hair_huang_sample(), bsdf_microfacet_eval(), bsdf_microfacet_sample(), bsdf_principled_hair_sigma_from_concentration(), bsdf_sheen_eval(), bsdf_sheen_sample(), bvh_clamp_direction(), BVHObjectBinning::BVHObjectBinning(), camera_direction_from_point(), camera_distance(), camera_panorama_direction(), camera_position(), camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), camera_world_to_ndc(), camera_z_depth(), ceil(), central_cylindrical_to_direction(), color_byte_to_float(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), colorramp_to_array(), compute_2d_gabor_noise_cell(), compute_3d_gabor_noise(), compute_3d_orientation(), PointCloud::compute_bounds(), compute_emitter_centroid_and_dir(), compute_face_normal(), Mesh::Triangle::compute_normal(), Object::compute_volume_step_size(), CombineColorNode::constant_fold(), CombineHSVNode::constant_fold(), CombineRGBNode::constant_fold(), CombineXYZNode::constant_fold(), ConvertNode::constant_fold(), CurvesNode::constant_fold(), AttributeConverter< blender::float3 >::convert(), VolumeMeshBuilder::convert_object_space(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float3 >(), cos(), create_mesh(), cross(), curvemapping_color_to_array(), CCL_NAMESPACE_BEGIN::density_texture_space_invert(), LightManager::device_update_background(), equiangular_cubemap_face_to_direction(), equirectangular_range_to_direction(), exp(), export_hair_curves(), export_pointcloud(), export_pointcloud_motion(), ExportCurveSegments(), fabs(), film_apply_pass_pixel_overlays_rgba(), film_calculate_shadow_catcher(), film_calculate_shadow_catcher_denoised(), film_calculate_shadow_catcher_matte_with_shadow(), film_get_pass_pixel_combined(), film_get_pass_pixel_float3(), film_get_pass_pixel_float4(), film_get_pass_pixel_light_path(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), fisheye_to_direction(), float2_to_float3(), float4_to_float3(), floor(), fmod(), geographical_to_direction(), geographical_to_direction(), BVHObjectBinning::get_bin(), BVHObjectBinning::get_bin(), get_float3(), get_float3(), get_float3(), get_node_output_rgba(), get_node_output_vector(), SkyTextureNode::get_sun_average_radiance(), BoundBox::grow(), BoundBox::grow_safe(), guiding_bsdf_sample(), guiding_phase_sample(), guiding_record_background(), guiding_record_volume_bounce(), hash_float2_to_float2(), hash_float2_to_float3(), hash_float3_to_float2(), hash_float3_to_float3(), hash_float4_to_float3(), hash_float_to_float3(), hsl_to_rgb(), hsv_to_rgb(), ShaderManager::init_xyz_transforms(), iridescence_airy_summation(), iridescence_lookup_sensitivity(), is_zero(), kernel_embree_filter_func_backface_cull(), kernel_embree_filter_occluded_func_backface_cull(), kernel_embree_filter_occluded_local_func_impl(), kernel_read_pass_float3(), light_sample_shader_eval(), LightTreeEmitter::LightTreeEmitter(), log(), make_orthonormals(), make_transform_frame(), max(), mesh_texture_space(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mirrorball_to_direction(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), noise_texture_1d(), noise_texture_2d(), noise_texture_3d(), noise_texture_4d(), object_color(), object_dupli_generated(), object_dupli_uv(), object_location(), one_float3(), operator*(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator-(), operator/(), operator/(), operator/(), osl_mul_closure_float(), osl_wavelength_color_vf(), output_estimate_emission(), patch_eval_float3(), path_rng_3D(), phase_fournier_forand_coeffs(), phase_sample_direction(), power(), precompute_ggx_E(), precompute_ggx_gen_schlick_s(), precompute_ggx_glass_E(), primitive_motion_vector(), primitive_surface_attribute_float3(), primitive_tangent(), primitive_uv(), random_float3_offset(), ray_offset(), ray_optical_depth(), ray_triangle_cross(), rcp(), read_shader_output(), rec709_to_rgb(), ShaderManager::rec709_to_scene_linear(), rgb_to_hsl(), rgb_to_hsv(), safe_divide(), safe_divide_even_color(), safe_divide_shadow_catcher(), sample_uniform_sphere(), sample_wh(), saturate(), set_attribute_float3(), set_attribute_float3(), MikkMeshWrapper< is_subd >::SetTangentSpace(), single_scattering(), SKY_nishita_skymodel_precompute_texture(), sky_radiance_hosek(), sky_radiance_nishita(), snoise_3d(), sobol_burley_sample_3D(), spec_to_xyz(), spherical_stereo_transform(), spherical_to_direction(), sphg_dir(), spot_light_valid_ray_segment(), sqrt(), stack_load_float3(), subd_triangle_attribute_float3(), sun_radiation(), surface_shader_constant_emission(), svm_magic(), svm_mapping(), svm_math_blackbody_color_rec709(), svm_math_gamma_color(), svm_math_wavelength_color_xyz(), svm_mix(), svm_mix_linear(), svm_mix_screen(), svm_mix_soft(), svm_node_attr(), svm_node_attr_bump_dx(), svm_node_attr_bump_dy(), svm_node_closure_bsdf(), svm_node_closure_set_weight(), svm_node_combine_color(), svm_node_combine_hsv(), svm_node_convert(), svm_node_curves(), svm_node_geometry(), svm_node_geometry_bump_dx(), svm_node_geometry_bump_dy(), svm_node_normal_map(), svm_node_tangent(), svm_node_tex_environment(), svm_node_tex_gradient(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_sky(), svm_node_tex_voronoi(), svm_node_tex_voxel(), svm_node_tex_wave(), svm_node_tex_white_noise(), svm_node_value_v(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_node_vector_math(), svm_node_vector_rotate(), svm_node_vertex_color(), svm_node_vertex_color_bump_dx(), svm_node_vertex_color_bump_dy(), svm_node_wavelength(), svm_vector_math(), svm_wave(), HdCyclesGeometry< Base, CyclesBase >::Sync(), HdCyclesLight::Sync(), tabulated_sobol_sample_3D(), TEST(), BlenderObjectCulling::test(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), texco_remap_square(), OSLRenderServices::texture(), OSLRenderServices::texture3d(), ColorSpaceManager::to_scene_linear(), OSLRenderServices::trace(), transform_compose(), transform_direction(), transform_direction_transposed(), transform_euler(), transform_get_column(), transform_inverse_impl(), transform_motion_decompose(), transform_perspective(), transform_perspective_direction(), transform_point(), transform_scale(), transform_translate(), triangle_attribute_float3(), HdCyclesSession::UpdateScene(), Camera::viewplane_bounds_get(), volume_fournier_forand_eval(), volume_fournier_forand_sample(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), voronoi_smooth_f1(), Camera::world_to_raster_size(), xml_read_float3(), xml_read_float3_array(), xml_read_mesh(), xml_read_transform(), xyY_to_xyz(), xyz_to_rgb(), and zero_float3().

◆ make_float4()

ccl_device_forceinline float4 make_float4 ( const float x,
const float y,
const float z,
const float w )

Definition at line 234 of file device/metal/compat.h.

References w(), and z().

Referenced by __int4_as_float4(), area_light_rect_sample(), attr_create_motion_from_velocity(), BVHObjectBinning::blocks(), BVHObjectBinning::BVHObjectBinning(), Hair::Curve::cardinal_keys_for_step(), cast(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), color_uchar4_to_float4(), compute_3d_gabor_noise_cell(), AttributeConverter< blender::ColorGeometry4b >::convert(), AttributeConverter< blender::ColorGeometry4f >::convert(), AttributeConverter< blender::math::Quaternion >::convert(), PointCloud::copy_center_to_motion_step(), cross(), curve_point_as_float4(), LightManager::device_update_background(), direction_to_equirectangular(), direction_to_fisheye_lens_polynomial(), equirectangular_to_direction(), exp(), export_pointcloud_motion(), fabs(), fast_exp2f4(), fetch_node_float(), film_calculate_shadow_catcher_matte_with_shadow(), film_get_pass_pixel_cryptomatte(), film_get_pass_pixel_motion(), film_write_adaptive_buffer(), film_write_aov_pass_color(), film_write_combined_transparent_pass(), fisheye_lens_polynomial_to_direction(), float3_to_float4(), float3_to_float4(), float4_to_half4_display(), floor(), fmod(), get_float4(), half4_to_float4_image(), hash_float3_to_float3(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), kernel_read_pass_float4(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), kernel_tex_image_interp(), kernel_tex_image_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), Hair::Curve::keys_for_step(), load_float4(), log(), max(), min(), noise_texture_4d(), ObtainCacheParticleVcol(), one_float4(), operator*(), operator*(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator-(), operator/(), operator^(), PointCloud::pack(), Hair::pack_curves(), BVH2::pack_unaligned_node(), path_rng_4D(), PointCloud::Point::point_for_step(), power(), primitive_motion_vector(), random_float4_offset(), ray_triangle_cross(), ray_triangle_dot(), rcp(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::read(), CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::read(), read_node_float(), BVHBuild::rotate(), safe_divide(), saturate(), select(), snoise_4d(), sobol_burley_sample_4D(), sqrt(), svm_image_texture(), svm_image_texture_read(), svm_image_texture_read_2d(), svm_image_texture_read_3d(), svm_node_tex_noise(), svm_node_tex_voronoi(), svm_node_tex_white_noise(), tabulated_sobol_sample_4D(), TEST(), TEST(), TEST(), OSLRenderServices::texture(), transform_compose(), transform_decompose(), transform_perspective(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), voronoi_position(), voronoi_position(), voronoi_smooth_f1(), xml_read_float4(), and zero_float4().

◆ make_int2()

◆ make_int3()

◆ make_int4()

◆ make_uchar4()

ccl_device_forceinline uchar4 make_uchar4 ( const uchar x,
const uchar y,
const uchar z,
const uchar w )

Definition at line 272 of file device/metal/compat.h.

References w(), and z().

Referenced by attr_create_generic(), color_float4_to_uchar4(), and color_float_to_byte().

◆ make_uint2()

ccl_device_forceinline uint2 make_uint2 ( const uint x,
const uint y )

Definition at line 257 of file device/metal/compat.h.

◆ make_uint3()

ccl_device_forceinline uint3 make_uint3 ( const uint x,
const uint y,
const uint z )

Definition at line 262 of file device/metal/compat.h.

References z().

Referenced by blue_noise_indexing().

◆ make_uint4()

ccl_device_forceinline uint4 make_uint4 ( const uint x,
const uint y,
const uint z,
const uint w )

Definition at line 267 of file device/metal/compat.h.

References w(), and z().

Variable Documentation

◆ metal_samplers

constant constexpr array<sampler, SamplerCount> metal_samplers
constexpr
Initial value:
= {
sampler(address::repeat, filter::nearest),
sampler(address::clamp_to_edge, filter::nearest),
sampler(address::clamp_to_zero, filter::nearest),
sampler(address::mirrored_repeat, filter::nearest),
sampler(address::repeat, filter::linear),
sampler(address::clamp_to_edge, filter::linear),
sampler(address::clamp_to_zero, filter::linear),
sampler(address::mirrored_repeat, filter::linear),
}
local_group_size(16, 16) .push_constant(Type local_group_size(16, 16) .push_constant(Type input_tx sampler(1, ImageType::FLOAT_2D, "matte_tx") .image(0

Definition at line 406 of file device/metal/compat.h.