Blender  V3.3
gpu_batch_presets.c File Reference
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "GPU_batch.h"
#include "GPU_batch_presets.h"

Go to the source code of this file.

Functions

3D Primitives
static GPUVertFormatpreset_3d_format (void)
 
static GPUVertFormatpreset_2d_format (void)
 
static void batch_sphere_lat_lon_vert (GPUVertBufRaw *pos_step, GPUVertBufRaw *nor_step, float lat, float lon)
 
GPUBatchGPU_batch_preset_sphere (int lod)
 
GPUBatchGPU_batch_preset_sphere_wire (int lod)
 
Create Sphere (3D)
static GPUBatchgpu_batch_sphere (int lat_res, int lon_res)
 
static GPUBatchbatch_sphere_wire (int lat_res, int lon_res)
 
Panel Drag Widget
static void gpu_batch_preset_rectf_tris_color_ex (GPUVertBufRaw *pos_step, float x1, float y1, float x2, float y2, GPUVertBufRaw *col_step, const float color[4])
 
static GPUBatchgpu_batch_preset_panel_drag_widget (float pixelsize, const float col_high[4], const float col_dark[4], const float width)
 
GPUBatchGPU_batch_preset_panel_drag_widget (const float pixelsize, const float col_high[4], const float col_dark[4], const float width)
 
GPUBatchGPU_batch_preset_quad (void)
 
Preset Registration Management
void gpu_batch_presets_init (void)
 
void gpu_batch_presets_register (GPUBatch *preset_batch)
 
bool gpu_batch_presets_unregister (GPUBatch *preset_batch)
 
void gpu_batch_presets_exit (void)
 

Variables

Local Structures
struct {
   struct {
      GPUBatch *   sphere_high
 
      GPUBatch *   sphere_med
 
      GPUBatch *   sphere_low
 
      GPUBatch *   sphere_wire_low
 
      GPUBatch *   sphere_wire_med
 
   }   batch
 
   GPUVertFormat   format
 
   struct {
      uint   pos
 
      uint   nor
 
   }   attr_id
 
   ThreadMutex   mutex
 
g_presets_3d = {{0}}
 
struct {
   struct {
      GPUBatch *   panel_drag_widget
 
      GPUBatch *   quad
 
   }   batch
 
   float   panel_drag_widget_pixelsize
 
   float   panel_drag_widget_width
 
   float   panel_drag_widget_col_high [4]
 
   float   panel_drag_widget_col_dark [4]
 
   GPUVertFormat   format
 
   struct {
      uint   pos
 
      uint   col
 
   }   attr_id
 
g_presets_2d = {{0}}
 
static ListBase presets_list = {NULL, NULL}
 

Function Documentation

◆ batch_sphere_lat_lon_vert()

static void batch_sphere_lat_lon_vert ( GPUVertBufRaw pos_step,
GPUVertBufRaw nor_step,
float  lat,
float  lon 
)
static

Definition at line 90 of file gpu_batch_presets.c.

References copy_v3_v3(), cosf, GPU_vertbuf_raw_step(), pos, and sinf.

Referenced by batch_sphere_wire(), and gpu_batch_sphere().

◆ batch_sphere_wire()

static GPUBatch* batch_sphere_wire ( int  lat_res,
int  lon_res 
)
static

◆ GPU_batch_preset_panel_drag_widget()

GPUBatch* GPU_batch_preset_panel_drag_widget ( const float  pixelsize,
const float  col_high[4],
const float  col_dark[4],
const float  width 
)

◆ gpu_batch_preset_panel_drag_widget()

static GPUBatch* gpu_batch_preset_panel_drag_widget ( float  pixelsize,
const float  col_high[4],
const float  col_dark[4],
const float  width 
)
static

◆ GPU_batch_preset_quad()

GPUBatch* GPU_batch_preset_quad ( void  )

◆ gpu_batch_preset_rectf_tris_color_ex()

static void gpu_batch_preset_rectf_tris_color_ex ( GPUVertBufRaw pos_step,
float  x1,
float  y1,
float  x2,
float  y2,
GPUVertBufRaw col_step,
const float  color[4] 
)
static

◆ GPU_batch_preset_sphere()

GPUBatch* GPU_batch_preset_sphere ( int  lod)

◆ GPU_batch_preset_sphere_wire()

GPUBatch* GPU_batch_preset_sphere_wire ( int  lod)

Definition at line 117 of file gpu_batch_presets.c.

References BLI_assert, BLI_thread_is_main(), and g_presets_3d.

◆ gpu_batch_presets_exit()

void gpu_batch_presets_exit ( void  )

◆ gpu_batch_presets_init()

void gpu_batch_presets_init ( void  )

◆ gpu_batch_presets_register()

void gpu_batch_presets_register ( GPUBatch preset_batch)

◆ gpu_batch_presets_unregister()

bool gpu_batch_presets_unregister ( GPUBatch preset_batch)

◆ gpu_batch_sphere()

static GPUBatch* gpu_batch_sphere ( int  lat_res,
int  lon_res 
)
static

◆ preset_2d_format()

static GPUVertFormat* preset_2d_format ( void  )
static

◆ preset_3d_format()

static GPUVertFormat* preset_3d_format ( void  )
static

Variable Documentation

◆ 

struct { ... } attr_id

◆ 

struct { ... } batch

Referenced by blender::gpu::GLDrawList::append(), blender::gpu::GLVaoCache::base_instance_vao_get(), BPyGPUBatch_CreatePyObject(), curve_batch_cache_clear(), draw_cache_view_batch(), draw_call_single_do(), draw_line_bounds(), draw_line_loop(), draw_line_pairs(), draw_select_buffer(), draw_seq_fcurve_overlay(), draw_widgetbase_batch(), drawscredge_area_draw(), drw_add_attributes_vbo(), DRW_batch_request(), DRW_batch_requested(), drw_command_draw(), drw_command_draw_instance(), drw_command_draw_intance_range(), drw_command_draw_procedural(), drw_command_draw_range(), DRW_draw_depth_object(), DRW_ibo_request(), DRW_instance_buffer_finish(), DRW_shape_cache_free(), DRW_shgroup_call_buffer(), DRW_shgroup_call_buffer_instance(), DRW_shgroup_call_instances_with_attrs(), DRW_temp_batch_instance_request(), DRW_temp_batch_request(), DRW_vbo_request(), ED_screen_draw_edges(), EEVEE_motion_blur_cache_finish(), EEVEE_motion_blur_cache_populate(), SetupContactConstraintsLoop::forLoop(), gpencil_dummy_buffer_get(), gpencil_sbuffer_stroke_ensure(), GPU_batch_calloc(), GPU_batch_clear(), GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_batch_draw_advanced(), GPU_batch_draw_instanced(), GPU_batch_draw_range(), GPU_batch_elembuf_set(), GPU_batch_init_ex(), GPU_batch_instbuf_add_ex(), GPU_batch_instbuf_set(), GPU_batch_program_set_builtin(), GPU_batch_program_set_builtin_with_config(), GPU_batch_program_set_imm_shader(), GPU_batch_set_shader(), GPU_batch_vertbuf_add_ex(), GPU_batch_vertbuf_has(), GPU_draw_list_append(), gpu_viewport_draw_colormanaged(), instancing_batch_references_add(), instancing_batch_references_remove(), knifetool_draw(), mergeSmallBatches(), mesh_batch_cache_clear(), motion_blur_remove_vbo_reference_from_batch(), panel_draw_aligned_widgets(), pygpu_batch__tp_new(), randomizeBatchedConstraintOrdering(), setupSpatialGridBatchesMt(), stitch_draw_vbo(), ContactSplitPenetrationImpulseSolverLoop::sumLoop(), JointSolverLoop::sumLoop(), ContactSolverLoop::sumLoop(), ContactFrictionSolverLoop::sumLoop(), InterleavedContactSolverLoop::sumLoop(), ContactRollingFrictionSolverLoop::sumLoop(), temp_batch_free(), ui_draw_dropshadow(), UI_draw_roundbox_4fv_ex(), UI_widgetbase_draw_cache_flush(), blender::gpu::GLVertArray::update_bindings(), btBatchedConstraints::validate(), blender::gpu::GLVaoCache::vao_get(), waveform_draw_one(), wm_gizmo_geometryinfo_draw(), and writeOutBatches().

◆ col

uint col

Definition at line 54 of file gpu_batch_presets.c.

Referenced by add_bezt_to_keyblocks_list(), add_keyblock_info(), btMatrixX< T >::addElem(), advanced_panel_draw(), ANIM_channel_draw(), axis_mapping_panel_draw(), bake_panel_draw(), bc_get_cot(), bc_get_cot_from_shader(), bc_get_emission(), BKE_collider_cache_create(), BKE_displist_fill(), BKE_gpencil_from_image(), BKE_gpencil_merge_materials_table_get(), BKE_icon_geom_rasterize(), BKE_paint_init(), BKE_palette_from_hash(), BKE_psys_collision_neartest_cb(), BKE_volume_grid_transform_matrix(), BKE_volume_grid_transform_matrix_set(), blf_font_draw_mono(), BLI_str_utf8_offset_from_column(), blo_do_versions_pre250(), block_create_autorun_warning(), blur_panel_draw(), bm_face_reverse_colors(), BMD_error_messages(), boid_find_ground(), boxsampleclip(), brush_smear_apply(), buf_rectfill_area(), cage2d_draw_box_interaction(), calculate_average_color(), blender::nodes::node_shader_tex_voronoi_cc::VoronoiMinowskiFunction::call(), blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), cloth_brush_collider_cache_create(), cloth_brush_collision_cb(), cloth_brush_solve_collision(), cloth_continuum_step(), collision_check(), collision_detect(), collision_fail(), collision_interpolate_element(), collision_newton_rhapson(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_response(), collision_sphere_to_edges(), collision_sphere_to_tri(), collision_sphere_to_verts(), Color_add(), Color_ass_slice(), Color_CreatePyObject(), Color_CreatePyObject_wrap(), color_filter_task_cb(), Color_from_aces_to_scene_linear(), Color_from_rec709_linear_to_scene_linear(), Color_from_scene_linear_to_aces(), Color_from_scene_linear_to_rec709_linear(), Color_from_scene_linear_to_srgb(), Color_from_scene_linear_to_xyz_d65(), Color_from_srgb_to_scene_linear(), Color_from_xyz_d65_to_scene_linear(), Color_new(), Color_sub(), colorfn(), column_vector_multiplication(), composition_panel_draw(), console_cursor_wrap_offset(), SeparateColorNode::constant_fold(), constant_offset_draw(), blender::compositor::ColorCurveNode::convert_to_operations(), blender::compositor::ColorNode::convert_to_operations(), btMatrixX< T >::copyLowerToUpperTriangle(), cpack_to_rgb(), curvature_panel_draw(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), debugDrawPhase(), decodetarga(), do_color_smooth_task_cb_exec(), do_hue_sat_fac(), do_mask_by_color_task_cb(), do_paint_brush_task_cb_ex(), do_sample_wet_paint_task_cb(), do_smear_brush_task_cb_exec(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), blender::io::usd::USDHairWriter::do_write(), btSoftBodyHelpers::Draw(), draw_axes(), draw_color_strip_band(), draw_disk_shaded(), draw_fcurve_handles(), draw_fill_tile(), draw_filled_lasso_px_cb(), draw_histogram_bar(), draw_marker_areas(), draw_marker_slide_zones(), draw_mouse_position(), draw_seq_background(), draw_seq_handle(), draw_seq_outline(), draw_seq_text_overlay(), draw_sequence_extensions_overlay(), draw_timeline_seq(), draw_view_axis(), draw_waveform_segment(), libmv::DrawCircle(), libmv::DrawEllipse(), libmv::DrawLine(), drawLine(), drawmeta_contents(), drawSnapping(), drw_debug_draw_lines(), DRW_text_cache_add(), DRW_text_edit_mesh_measure_stats(), dynamicPaint_setInitialColor(), ED_draw_object_facemap(), ED_image_draw_info(), ED_node_sample_set(), ED_screen_draw_edges(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), edge_types_panel_draw(), eff_calc_visibility(), EIG_linear_solver_matrix_add(), envelope_panel_draw(), exec(), blender::compositor::DirectionalBlurOperation::execute_pixel(), blender::compositor::ColorCurveOperation::execute_pixel_sampled(), blender::compositor::ConstantLevelColorCurveOperation::execute_pixel_sampled(), eyedropper_color_sample(), eyedropper_color_sample_text_update(), eyedropper_color_set(), eyedropper_colorband_sample_point(), eyedropper_init(), fade_panel_draw(), fading_panel_draw(), file_draw_preview(), file_draw_string(), file_panel_asset_catalog_buttons_draw(), flatten_column_to_offset(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_input_bool_cc::fn_node_input_bool_layout(), blender::nodes::node_fn_input_int_cc::fn_node_input_int_layout(), blender::nodes::node_fn_input_vector_cc::fn_node_input_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), get_bone_solid_with_consts_color(), get_ccgdm_data(), blender::io::alembic::get_cols(), btMultiBodyFixedConstraint::getIslandIdA(), btMultiBodyGearConstraint::getIslandIdA(), btMultiBodyJointLimitConstraint::getIslandIdA(), btMultiBodyJointMotor::getIslandIdA(), btMultiBodySliderConstraint::getIslandIdA(), btMultiBodySphericalJointMotor::getIslandIdA(), btMultiBodyFixedConstraint::getIslandIdB(), btMultiBodyGearConstraint::getIslandIdB(), btMultiBodyJointLimitConstraint::getIslandIdB(), btMultiBodyJointMotor::getIslandIdB(), btMultiBodySliderConstraint::getIslandIdB(), btMultiBodySphericalJointMotor::getIslandIdB(), getLinToSrgbLut(), getSrgbToLinLut(), gizmo_ruler_draw(), gpencil_buffer_add_point(), gpencil_draw_basic_stroke(), gpencil_extract_palette_from_vertex(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), graph_refresh_fcurve_colors(), hair_attenuation(), hsv_to_cpack(), hud_panel_operator_redo_draw(), i_multmatrix(), ibuf_get_color(), ibuf_get_color_clip(), ibuf_get_color_clip_bilerp(), icon_draw_rect(), image_new_draw(), image_save_as_draw(), imb_bmp_decode(), IMB_double_fast_x(), imb_load_dds(), imb_loadtarga(), IMB_mask_clear(), IMB_rectfill(), IMB_rectfill_area(), IMB_rectfill_area_replace(), immRectf_fast_with_color(), immRecti_fast_with_color(), immThemeColorShadeAlpha(), init_pointdensityrangedata(), intersection_panel_draw(), isDisabled(), lattice_batch_cache_get_pos(), layerInterp_mcol(), layerInterp_mloopcol(), layerInterp_propcol(), layers_panel_draw(), layerSwap_mcol(), ldtarga(), limits_panel_draw(), lineart_main_bounding_area_make_initial(), lineart_main_bounding_areas_connect_post(), lineart_main_link_lines(), lineart_main_remove_unused_lines_from_tiles(), VDBImageLoader::load_metadata(), load_tex(), load_tex_task_cb_ex(), material_mask_panel_draw(), materials_panel_draw(), math_matrix_add_gramian(), math_matrix_jacobi_eigendecomposition(), math_matrix_zero(), math_trimatrix_add_gramian(), math_trimatrix_add_gramian_strided(), math_trimatrix_cholesky(), math_trimatrix_vec3_solve(), mathutils_matrix_col_get(), mathutils_matrix_col_get_index(), mathutils_matrix_col_set(), mathutils_matrix_col_set_index(), mathutils_matrix_row_get(), mathutils_matrix_row_get_index(), mathutils_matrix_row_set(), mathutils_matrix_row_set_index(), mathutils_matrix_translation_get(), mathutils_matrix_translation_get_index(), mathutils_matrix_translation_set(), mathutils_matrix_translation_set_index(), Matrix_ass_item_col(), Matrix_ass_item_row(), Matrix_ass_slice(), matrix_col_vector_check(), Matrix_imatmul(), matrix_is_identity(), Matrix_item_col(), Matrix_matmul(), Matrix_repr(), Matrix_resize_4x4(), Matrix_str(), Matrix_to_NxN(), matrix_transpose_internal(), matrix_unit_internal(), mloopcol_from_float(), MOD_lineart_get_parent_bounding_area(), motion_path_cache(), move_geom_draw(), btMatrixX< T >::mulElem(), btMatrixX< T >::multiply2_p8r(), btMatrixX< T >::multiplyAdd2_p8r(), multitex(), nla_draw_strip_frames_text(), nla_draw_strip_text(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time_header(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_time(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_offset_draw(), occlusion_panel_draw(), btMatrixX< T >::operator()(), LightsExporter::operator()(), options_light_reference_draw(), options_panel_draw(), outliner_draw_hierarchy_lines(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_highlights(), OVERLAY_extra_wire(), paint_draw_alpha_overlay(), paint_draw_tex_overlay(), palette_extract_img_exec(), panel_draw(), path_panel_draw(), blender::compositor::DisplaceOperation::pixel_transform(), point_density_sample_func(), pointdensity(), pointdensity_cache_vertex_color(), pointdensity_color(), position_panel_draw(), psys_cache_paths(), pygpu_framebuffer_clear(), pyrna_math_object_from_array(), radial_control_paint_cursor(), radial_control_paint_tex(), ramp_blend(), rect_bevel_side(), rect_bevel_smooth(), relative_offset_draw(), libmv::homography::homography2D::AlgebraicError::Residuals(), rgb_tint(), rgba_float_args_set(), rgba_uchar_args_set(), rgba_uchar_args_test_set(), rotate_m4(), row_vector_multiplication(), rule_avoid_collision(), libmv::safePutPixel(), same_tex_snap(), scope_put_pixel_single(), screen_preview_draw(), screen_preview_draw_areas(), sculpt_color_presmooth_init(), seq_draw_image_origin_and_outline(), MaterialNode::set_alpha(), MaterialNode::set_ambient(), set_color(), MaterialNode::set_diffuse(), MaterialNode::set_emission(), MaterialNode::set_opacity(), set_pixel(), MaterialNode::set_reflective(), MaterialNode::set_specular(), setElem(), btMatrixX< T >::setElem(), btMatrixX< T >::setSubMatrix(), shading_panel_draw(), SIM_hair_volume_solve_divergence(), btLemkeSolver::solveMLCP(), solver_options_panel_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), stitch_draw(), stitch_draw_vbo(), svm_mix_clamp(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), texture_value_blend(), textview_draw_string(), tile_add_draw(), time_panel_draw(), track_colors(), tracking_segment_start_cb(), transform_draw_cursor_draw(), AnimationImporter::translate_Animations(), tri_fill_flat(), tri_fill_smooth(), txt_wrap_move_down(), txt_wrap_move_up(), ui_do_but_COLOR(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_IMAGE(), ui_draw_but_TAB_outline(), ui_draw_gradient(), ui_draw_pie_center(), UI_draw_roundbox_3fv_alpha(), UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_4fv(), ui_draw_separator(), UI_fontstyle_draw(), UI_fontstyle_draw_ex(), UI_fontstyle_draw_rotated(), UI_fontstyle_draw_simple(), UI_GetColorPtrBlendShade3ubv(), UI_GetColorPtrShade3ubv(), UI_GetIconThemeColor4ubv(), UI_GetThemeColor3fv(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_GetThemeColorBlend3ubv(), UI_GetThemeColorBlendShade3fv(), UI_GetThemeColorBlendShade3ubv(), UI_GetThemeColorBlendShade4fv(), UI_GetThemeColorShade3fv(), UI_GetThemeColorShade3ubv(), UI_GetThemeColorShade4fv(), UI_GetThemeColorShade4ubv(), UI_GetThemeColorShadeAlpha4fv(), UI_GetThemeColorShadeAlpha4ubv(), UI_GetThemeColorType3fv(), UI_GetThemeColorType3ubv(), UI_GetThemeColorType4fv(), UI_GetThemeColorType4ubv(), ui_item_array(), ui_litem_estimate_column_flow(), ui_litem_grid_flow_compute(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), UI_make_axis_color(), ui_paneltype_draw_impl(), ui_searchbox_butrect(), ui_template_list_layout_draw(), UI_ThemeClearColor(), ui_update_color_picker_buts_rgb(), UI_view2d_text_cache_add(), UI_view2d_text_cache_add_rectf(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiTemplateAssetView(), uiTemplateCacheFileLayers(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), update_keyblocks(), blender::compositor::ColorCurveOperation::update_memory_buffer_partial(), blender::compositor::ConstantLevelColorCurveOperation::update_memory_buffer_partial(), btMultiBodyDynamicsWorld::updateActivationState(), updateCollisionObjectInterpolationWorldTransforms(), updateCollisionObjectWorldTransforms(), updateDepsgraph(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_transform(), view3d_panel_vgroup(), vpaint_get_current_color(), waveform_draw_one(), wform_put_line_single(), widget_draw_extra_mask(), widget_draw_node_link_socket(), widget_draw_submenu_tria(), widget_draw_text(), widget_draw_vertex_buffer(), widget_swatch(), wm_block_create_about(), wm_block_create_redo(), wm_block_dialog_create(), wm_drag_draw_icon(), wm_open_mainfile_ui(), wm_stereo3d_set_draw(), wm_xr_controller_aim_draw(), wm_xr_raycast_draw(), DocumentImporter::writeLight(), blender::compositor::zbuf_accumulate_vecblur(), and blender::compositor::zbuf_fill_in_rgba().

◆ format

Definition at line 31 of file gpu_batch_presets.c.

◆ 

struct { ... } g_presets_2d

◆ 

struct { ... } g_presets_3d

◆ mutex

ThreadMutex mutex

Definition at line 37 of file gpu_batch_presets.c.

◆ nor

uint nor

Definition at line 34 of file gpu_batch_presets.c.

Referenced by axis_angle_to_mat3(), axis_angle_to_quat(), BKE_displist_normals_add(), bm_edgering_pair_store_create(), BM_loop_calc_face_tangent(), bm_mesh_loops_assign_normal_data(), bm_mesh_loops_calc_normals_for_loop(), bm_mesh_loops_split_lnor_fans(), bm_vert_pair_to_matrix(), BM_verts_sort_radial_plane(), boid_body(), boid_climb(), calc_nor_area_tri(), calc_tangent_loop_accum(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_response(), GeometryExporter::createNormalsSource(), cubemap_glob(), curve_create_edit_curves_nor(), deflect_emitter_iter(), dist_ensure_v2_v2fl(), dist_ensure_v3_v3fl(), distribute_from_volume_exec(), DRW_cache_bone_box_get(), DRW_cache_bone_octahedral_get(), DRW_cache_bone_point_get(), DRW_displist_vertbuf_create_pos_and_nor(), dynamicPaint_paintMesh(), ED_armature_ebone_roll_to_vector(), edbm_dupli_extrude_cursor_invoke(), edbm_screw_exec(), GeometryExporter::export_key_mesh(), blender::draw::extract_fdots_nor_finish(), blender::draw::extract_fdots_nor_hq_finish(), blender::draw::extract_pos_nor_hq_iter_ledge_bm(), blender::draw::extract_pos_nor_hq_iter_ledge_mesh(), blender::draw::extract_pos_nor_loose_geom_subdiv(), imm_draw_cylinder_fill_normal_3d(), isect_sweeping_sphere_tri_v3(), legacy_vec_roll_to_mat3_normalized(), mat3_to_quat_is_ok(), mesh_normals_loop_custom_set(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), normalfn(), nr_signed_distance_to_plane(), GeometryExporter::operator()(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_interpolate_face(), psys_particle_on_dm(), psys_particle_on_emitter(), psys_particle_on_shape(), psys_thread_context_init_distribute(), RE_bake_normal_world_to_object(), RE_bake_normal_world_to_tangent(), RE_bake_normal_world_to_world(), recalc_emitter_field(), SIM_mass_spring_force_face_extern(), SIM_mass_spring_force_face_wind(), SIM_mass_spring_force_pressure(), SIM_tri_area(), split_loop_nor_fan_do(), tan_calc_quat_v3(), vec_roll_to_mat3(), vec_roll_to_mat3_normalized(), vec_to_quat(), and walkEvent().

◆ panel_drag_widget

GPUBatch* panel_drag_widget

Definition at line 42 of file gpu_batch_presets.c.

◆ panel_drag_widget_col_dark

float panel_drag_widget_col_dark[4]

Definition at line 49 of file gpu_batch_presets.c.

◆ panel_drag_widget_col_high

float panel_drag_widget_col_high[4]

Definition at line 48 of file gpu_batch_presets.c.

◆ panel_drag_widget_pixelsize

float panel_drag_widget_pixelsize

Definition at line 46 of file gpu_batch_presets.c.

◆ panel_drag_widget_width

float panel_drag_widget_width

Definition at line 47 of file gpu_batch_presets.c.

◆ pos

uint pos

Definition at line 34 of file gpu_batch_presets.c.

Referenced by gim_hash_table< T >::_insert_in_pos(), _scan_for_ext_spring_forces(), acf_generic_channel_backdrop(), acf_generic_dataexpand_backdrop(), add_marker_at_click_modal(), add_marker_exec(), ANIM_channel_draw(), ANIM_draw_action_framerange(), ANIM_draw_cfra(), ANIM_draw_framerange(), ANIM_draw_previewrange(), annotation_draw_stabilizer(), annotation_draw_stroke_2d(), annotation_draw_stroke_3d(), annotation_draw_stroke_arrow_buffer(), annotation_draw_stroke_buffer(), annotation_draw_stroke_point(), app_translations_contexts_make(), app_translations_locales_get(), arrow_draw_geom(), atmosphere_intersection(), batch_screen_edges_get(), batch_sphere_lat_lon_vert(), bc_replace_string(), BKE_brush_jitter_pos(), BKE_colorband_evaluate(), BKE_icon_geom_rasterize(), BKE_pchan_bbone_deform_segment_index(), BKE_tracking_marker_get_subframe_position(), BKE_tracking_max_distortion_delta_across_bound(), BKE_tracking_sample_pattern(), BKE_tracking_tracks_join(), BLI_bvhtree_bb_raycast(), BLI_str_cursor_step_next_utf8(), BLI_str_cursor_step_prev_utf8(), BLI_str_cursor_step_utf32(), BLI_str_cursor_step_utf8(), BLI_str_utf8_offset_from_column(), BLI_str_utf8_offset_from_index(), BLI_str_utf8_offset_to_column(), BLI_str_utf8_offset_to_index(), BMO_op_vinitf(), BOX_AXIS_INTERSECT(), bpy_app_generic_callback(), BPY_app_handlers_reset(), BPY_app_handlers_struct(), BPy_BMO_call(), bpy_lib_write(), bpy_types_module_dir(), brush_drawcursor(), brush_painter_2d_refresh_cache(), brush_painter_2d_tex_mapping(), brush_painter_imbuf_partial_update(), brush_painter_mask_imbuf_partial_update(), btComputeMprPenetration(), btFindPenetr(), btFindPenetrSegment(), btFindPenetrTouch(), btFindPos(), btMprSimplexSet(), btSimplexSet(), blender::compositor::KeyingScreenOperation::build_voronoi_triangulation(), bundle_midpoint(), button2d_draw_intern(), button2d_geom_draw_backdrop(), cage2d_draw_box_corners(), cage2d_draw_box_interaction(), cage2d_draw_circle_handles(), cage2d_draw_circle_wire(), cage3d_draw_box_corners(), cage3d_draw_box_interaction(), cage3d_draw_circle_handles(), cage3d_draw_circle_wire(), blender::nodes::node_shader_tex_voronoi_cc::VoronoiMinowskiFunction::call(), blender::nodes::node_shader_tex_voronoi_cc::VoronoiMetricFunction::call(), blender::gpu::GPUSource::check_no_quotes(), choose_winner(), clip_draw_dopesheet_channels(), clip_draw_graph(), clip_draw_sfra_efra(), closest_latice(), colorband_add_cb(), colorband_distribute_cb(), btRigidBody::computeImpulseDenominator(), IK_QPositionTask::ComputeJacobian(), console_cursor_set_to_pos(), console_delete_exec(), console_line_column_from_index(), console_move_exec(), console_selectword_invoke(), console_textview_draw_cursor(), FloatCurveNode::constant_fold(), CurvesNode::constant_fold(), btSoftBodyHelpers::CreateFromTetGenData(), cursor_delim_type_utf8(), cursor_step_next_utf32(), cursor_step_prev_utf32(), curve_create_curves_pos(), curve_create_edit_curves_nor(), curve_create_edit_data_and_handles(), curve_draw_stroke_3d(), data_device_handle_drop(), debugDrawAllBatches(), delete_exec(), dial_geom_draw(), dial_ghostarc_draw(), dial_ghostarc_draw_helpline(), dial_ghostarc_draw_incremental_angle(), GeometryManager::displace(), dist_to_crns(), dist_to_rect(), IK_QPositionTask::Distance(), do_projectpaint_thread(), do_vert_pair(), blender::io::alembic::ABCPointsWriter::do_write(), blender::ed::spreadsheet::draw_alternating_row_overlay(), draw_anti_tria(), draw_azone_arrow(), draw_background(), draw_bezier_handle_lines(), draw_cache_view(), draw_channel_strips(), draw_color_strip_band(), draw_columnheader_background(), draw_columnheader_columns(), draw_current_frame(), draw_disk_shaded(), draw_display_buffer(), draw_distortion(), draw_dividers(), draw_effect_inputs_highlight(), draw_fcurve_active_handle_vertices(), draw_fcurve_active_vertex(), draw_fcurve_curve(), draw_fcurve_curve_bezts(), draw_fcurve_handle_vertices(), draw_fcurve_handles(), draw_fcurve_keyframe_vertices(), draw_fcurve_sample_control(), draw_fcurve_samples(), draw_fcurve_selected_handle_vertices(), draw_fcurve_selected_keyframe_vertices(), draw_fcurve_vertices(), draw_frame_curves(), draw_image_cache(), blender::ed::spreadsheet::draw_index_column_background(), draw_keyframe(), draw_line_bounds(), draw_line_loop(), draw_line_pairs(), draw_marker_areas(), draw_marker_line(), draw_marker_outline(), draw_marker_slide_square(), draw_marker_slide_triangle(), draw_marker_slide_zones(), draw_marker_texts(), draw_markers_background(), draw_mouse_position(), draw_movieclip_cache(), draw_movieclip_muted(), draw_nla_main_data(), blender::ed::space_node::draw_nodespace_back_pix(), draw_overlap_frame_indicator(), draw_parallel_lines(), draw_plane_marker_image(), draw_rect_point(), draw_render_info(), blender::ed::spreadsheet::draw_separator_lines(), draw_seq_background(), draw_seq_handle(), draw_seq_in_view(), draw_seq_invalid(), draw_seq_locked(), draw_seq_outline(), draw_seq_strip(), draw_seq_strips(), draw_seq_timeline_channels(), draw_seq_waveform_overlay(), draw_sequence_extensions_overlay(), draw_single_handle(), draw_spline_points(), blender::ed::spreadsheet::draw_spreadsheet_in_region(), blender::ed::spreadsheet::draw_top_row_background(), draw_tracking_tracks(), draw_tracks_motion_and_error_curves(), draw_tri_point(), draw_view_axis(), draw_waveform_segment(), drawEdgeSlide(), drawFlyPixel(), drawGearGL(), drawLine(), drawmeta_contents(), drawPropCircle(), drawSnapping(), drawWalkPixel(), DRW_cache_bone_box_get(), DRW_cache_bone_dof_lines_get(), DRW_cache_bone_dof_sphere_get(), DRW_cache_bone_envelope_solid_get(), DRW_cache_bone_octahedral_get(), DRW_cache_bone_point_get(), DRW_cache_bone_point_wire_outline_get(), DRW_cache_bone_stick_get(), DRW_cache_cursor_get(), DRW_cache_empty_capsule_body_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_fullscreen_quad_get(), DRW_cache_grid_get(), DRW_cache_speaker_get(), drw_debug_draw_lines(), DRW_displist_vertbuf_create_pos_and_nor(), DRW_draw_cursor(), btSoftBodyHelpers::duplicateFaces(), dynamic_paint_output_surface_image_displace_cb(), dynamic_paint_output_surface_image_paint_cb(), dynamic_paint_output_surface_image_wave_cb(), dynamic_paint_output_surface_image_wetmap_cb(), ED_clip_point_stable_pos(), ED_clip_point_stable_pos__reverse(), ED_image_draw_info(), ED_imbuf_sample_draw(), ED_mask_draw_frames(), ED_node_draw_snap(), ED_region_cache_draw_background(), ED_region_cache_draw_cached_segments(), ED_region_cache_draw_curfra_label(), ED_region_do_draw(), ED_region_grid_draw(), ED_region_image_metadata_draw(), ED_region_info_draw_multiline(), ED_time_scrub_channel_search_draw(), ED_view3d_cursor_snap_draw_util(), ED_view3d_offset_distance(), EDBM_preselect_edgering_draw(), EDBM_preselect_elem_draw(), eevee_lightbake_render_grid_sample(), EEVEE_lightbake_render_scene(), event_to_buf(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), blender::draw::extract_pos_nor_hq_iter_ledge_bm(), blender::draw::extract_pos_nor_hq_iter_ledge_mesh(), blender::draw::extract_pos_nor_iter_ledge_bm(), blender::draw::extract_pos_nor_iter_ledge_mesh(), blender::draw::extract_pos_nor_loose_geom_subdiv(), file_draw_preview(), fill_mapping(), blender::StringRefBase::find(), blender::StringRefBase::find_first_not_of(), blender::StringRefBase::find_first_of(), blender::StringRefBase::find_last_not_of(), blender::StringRefBase::find_last_of(), frame_jump_exec(), getMotorFactor(), Freestyle::StringUtils::getPathName(), GetPosition(), gim_radix_sort_rtokens(), gizmo_cage2d_draw_intern(), gizmo_cage3d_draw_intern(), gizmo_primitive_draw_geom(), gpencil_brush_cursor_draw(), gpencil_draw_basic_stroke(), gpencil_draw_stroke_3d(), gpencil_draw_stroke_volumetric_3d(), GPU_batch_tris_from_poly_2d_encoded(), GPU_batch_wire_from_poly_2d_encoded(), blender::ed::sculpt_paint::image::ops::paint::gradient_draw_line(), graph_main_region_draw(), IK_SolverAddGoal(), imb_exr_type_by_channels(), imm_draw_box_checker_2d_ex(), imm_draw_box_wire_2d(), imm_draw_box_wire_3d(), imm_draw_circle_3D(), imm_draw_circle_dashed_3d(), imm_draw_circle_fill_3d(), imm_draw_circle_partial(), imm_draw_circle_partial_3d(), imm_draw_circle_partial_wire_2d(), imm_draw_circle_partial_wire_3d(), imm_draw_circle_wire_3d(), imm_draw_cube_corners_3d(), imm_draw_cube_fill_3d(), imm_draw_cube_wire_3d(), imm_draw_cylinder_fill_3d(), imm_draw_cylinder_fill_normal_3d(), imm_draw_cylinder_wire_3d(), imm_draw_disk_partial(), imm_draw_disk_partial_3d(), imm_draw_disk_partial_fill_2d(), imm_draw_disk_partial_fill_3d(), imm_draw_point_aspect_2d(), imm_draw_point_aspect_3d(), imm_drawcircball(), immDrawBorderCorners(), immDrawPixelsTexScaledFullSize(), immDrawPixelsTexTiled_scaling_clipping(), immRectf(), immRectf_fast(), immRectf_fast_with_color(), immRecti(), immRecti_fast_with_color(), blender::gpu::GPUSource::init_dependencies(), init_meta(), init_track_for_stabilization(), blender::ed::sculpt_paint::paint::image::init_triangle_brush_test(), is_inside_tile(), kdtree2d_balance_recursive(), knifetool_draw(), knifetool_draw_angle_snapping(), knifetool_draw_orientation_locking(), knifetool_draw_visible_distances(), lattice_batch_cache_create_overlay_batches(), lattice_batch_cache_get_pos(), libmv_reprojectionPointForTrack(), localGetSupportVertexWithoutMarginNonVirtual(), logimage_fread(), logimage_fseek(), logimage_read_uchar(), logimage_read_uint(), logimage_read_ushort(), make_alembic_info(), make_app_cb_info(), make_app_info(), make_bbone_spline_matrix(), make_builtopts_info(), make_ffmpeg_info(), make_ocio_info(), make_oiio_info(), make_opensubdiv_info(), make_openvdb_info(), make_sdl_info(), make_usd_info(), makecubetable(), mask_draw_array(), mask_draw_curve_type(), merge_lists(), metaball_instance_data_set(), MOD_solidify_nonmanifold_modifyMesh(), mouse_on_crns(), mouse_on_rect(), mouse_to_offset_distance_squared(), move_all_selected_points(), move_bezt_handle_or_vertex_by_displacement(), move_cursor(), move_geom_draw(), next_lattice(), nla_draw_strip_curves(), blender::ed::space_node::node_composit_backdrop_boxmask(), blender::ed::space_node::node_composit_backdrop_ellipsemask(), blender::ed::space_node::node_composit_backdrop_viewer(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::node_draw_preview_background(), blender::ed::space_node::nodelink_batch_init(), blender::compositor::operation_class_name(), outliner_back(), outliner_draw_hierarchy_line(), outliner_draw_hierarchy_lines(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_highlights(), outliner_draw_separator(), outliner_draw_struct_marks(), output_iris(), OVERLAY_forcefield(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), paint_2d_convert_brushco(), paint_2d_lift_clone(), paint_2d_lift_smear(), paint_2d_lift_soften(), paint_2d_op(), paint_draw_cursor_overlay(), paint_draw_curve_cursor(), paint_draw_smooth_cursor(), paint_draw_tex_overlay(), paint_proj_stroke(), paint_proj_stroke_ps(), paintcurve_point_get_closest(), parse_int_range_relative(), parse_int_range_relative_clamp(), parse_int_range_relative_clamp_n(), parse_int_relative(), parse_int_relative_clamp(), planeProjection(), playanim_toscreen(), pointcloud_batch_cache_ensure_geom(), pointcloud_batch_cache_ensure_pos(), prev_lattice(), GHOST_SystemWin32::processWintabEvent(), project_paint_op(), psys_thread_context_init_distribute(), ptcache_rigidbody_interpolate(), py_structseq_from_strings(), PyC_FlagSet_ToBitfield(), pygpu_framebuffer_new_parse_arg(), pyrna_deferred_register_class_from_type_hints(), pyrna_deferred_register_props(), pyrna_enum_bitfield_from_set(), pyrna_enum_bitmap_from_set(), pyrna_func_call(), pyrna_prop_collection_idprop_move(), pyrna_pydict_to_props(), pyrna_struct_bl_rna_find_subclass_recursive(), radial_control_paint_cursor(), radial_control_paint_curve(), radial_control_paint_tex(), radixsort_pair(), ratiod(), ratiof(), blender::io::alembic::AbcCurveReader::read_curve_sample(), blender::io::alembic::AbcCurveReader::read_mesh(), reconstruct_retrieve_libmv_tracks(), region_draw_emboss(), render_cubemap(), blender::StringRefBase::rfind(), RNA_property_collection_move(), rotation_contribution(), blender::bke::mesh_surface_sample::sample_surface_points_projected(), scope_put_pixel(), scope_put_pixel_single(), screen_draw_split_preview(), screen_preview_draw_areas(), scrollbar_set_thumbpos(), sculpt_boundary_displacement_from_grab_delta_get(), IMemStream::seekg(), IMMapStream::seekg(), IFileStream::seekg(), OMemStream::seekp(), OFileStream::seekp(), selected_tracking_boundbox(), seq_draw_image_origin_and_outline(), seq_draw_sfra_efra(), sequencer_draw_display_buffer(), BoneExtended::set_bone_layers(), blender::ed::space_node::set_nodelink_vertex(), setJointPosMultiDof(), setkeys(), setPosition(), small_dict_get_item_string(), split_last_dot(), string_replace_same_length(), surface_intersection(), surfaceGenerateGrid(), texture_paint_camera_project_exec(), textview_draw_sel(), textview_draw_string(), blender::nodes::transform_curve_edit_hints(), blender::nodes::translate_curve_edit_hints(), ui_do_but_COLORBAND(), UI_draw_box_shadow(), ui_draw_but_COLORBAND(), ui_draw_but_CURVE(), ui_draw_but_curve_grid(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_TAB_outline(), ui_draw_but_UNITVEC(), ui_draw_colorband_handle_box(), ui_draw_colorband_handle_tri(), ui_draw_colorband_handle_tri_hlight(), ui_draw_gradient(), ui_draw_pie_center(), ui_draw_popover_back_impl(), UI_draw_safe_areas(), ui_draw_separator(), UI_draw_text_underline(), ui_hsv_cursor(), ui_item_fit(), UI_panel_category_draw_all(), ui_shadowbox(), ui_text_position_from_hidden(), ui_text_position_to_hidden(), ui_textedit_delete(), UI_view2d_dot_grid_draw(), UI_view2d_multi_grid_draw(), MEM_CacheLimiter< T >::unmanage(), vcloud_estimate_transform_v3(), vectorscope_draw_target(), vicon_colorset_draw(), vicon_gplayer_color_draw(), waveform_append_sample(), widget_draw_extra_mask(), widget_draw_text(), widget_draw_vertex_buffer(), widget_softshadow(), widget_swatch(), widgetbase_outline(), wm_gizmo_vec_draw(), wm_software_cursor_draw_bitmap(), wm_software_cursor_draw_crosshair(), wm_stereo3d_draw_sidebyside(), wm_stereo3d_draw_topbottom(), WM_window_pixel_sample_read(), wm_xr_controller_aim_draw(), wm_xr_raycast_draw(), write_waveform_data(), and zstd_frame_from_pos().

◆ presets_list

ListBase presets_list = {NULL, NULL}
static

◆ quad

GPUBatch* quad

◆ sphere_high

GPUBatch* sphere_high

Definition at line 24 of file gpu_batch_presets.c.

◆ sphere_low

GPUBatch* sphere_low

Definition at line 26 of file gpu_batch_presets.c.

◆ sphere_med

GPUBatch* sphere_med

Definition at line 25 of file gpu_batch_presets.c.

◆ sphere_wire_low

GPUBatch* sphere_wire_low

Definition at line 27 of file gpu_batch_presets.c.

◆ sphere_wire_med

GPUBatch* sphere_wire_med

Definition at line 28 of file gpu_batch_presets.c.