Blender V4.3
gpu_shader_builder_stubs.cc File Reference
#include "BLI_utildefines.h"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "BKE_appdir.hh"
#include "BKE_attribute.hh"
#include "BKE_customdata.hh"
#include "BKE_global.hh"
#include "BKE_material.h"
#include "BKE_mesh.hh"
#include "BKE_node.hh"
#include "BKE_paint.hh"
#include "BKE_pbvh_api.hh"
#include "BKE_subdiv_ccg.hh"
#include "DNA_userdef_types.h"
#include "NOD_shader.h"
#include "DRW_engine.hh"
#include "bmesh.hh"
#include "UI_resources.hh"

Go to the source code of this file.

Functions

Stubs of BLI_imbuf_types.h
void IMB_freeImBuf (ImBuf *)
 
struct ImBufIMB_allocImBuf (unsigned int, unsigned int, unsigned char, unsigned int)
 
Stubs of BLI_appdir.h
bool BKE_appdir_folder_caches (char *, size_t)
 
Stubs of UI_resources.hh
void UI_GetThemeColor4fv (int, float[4])
 
void UI_GetThemeColor3fv (int, float[3])
 
void UI_GetThemeColorShade4fv (int, int, float[4])
 
void UI_GetThemeColorShadeAlpha4fv (int, int, int, float[4])
 
void UI_GetThemeColorBlendShade4fv (int, int, float, int, float[4])
 
void UI_GetThemeColorBlend3ubv (int, int, float, uchar[3])
 
void UI_GetThemeColorShadeAlpha4ubv (int, int, int, uchar[4])
 
Stubs of BKE_paint.hh
void BKE_paint_face_set_overlay_color_get (const int, const int, uchar[4])
 
Stubs of BKE_material.h
void BKE_material_defaults_free_gpu ()
 
Stubs of BKE_customdata.hh
int CustomData_get_offset (const struct CustomData *, eCustomDataType)
 
int CustomData_get_active_layer_index (const struct CustomData *, eCustomDataType)
 
int CustomData_get_render_layer_index (const struct CustomData *, eCustomDataType)
 
bool CustomData_has_layer (const struct CustomData *, eCustomDataType)
 
Stubs of BKE_node.h
void ntreeGPUMaterialNodes (struct bNodeTree *, struct GPUMaterial *)
 
Stubs of DRW_engine.hh
void DRW_deferred_shader_remove (struct GPUMaterial *)
 
Stubs of IMB_imbuf.hh
struct ImBufIMB_ibImageFromMemory (const unsigned char *, size_t, int, char[IM_MAX_SPACE], const char *)
 
struct ImBufIMB_allocFromBuffer (const uint8_t *, const float *, unsigned int, unsigned int, unsigned int)
 
bool IMB_saveiff (struct ImBuf *, const char *, int)
 

Variables

Global G
 
UserDef U
 
char build_hash [16] = {'\0'}
 

Detailed Description

Stubs to reduce linking time for shader_builder.

Definition in file gpu_shader_builder_stubs.cc.

Function Documentation

◆ BKE_appdir_folder_caches()

bool BKE_appdir_folder_caches ( char * path,
size_t path_maxncpy )

Get the user's cache directory, i.e.

  • Linux: $HOME/.cache/blender/
  • Windows: USERPROFILE%\AppData\Local\Blender Foundation\Blender\
  • MacOS: /Library/Caches/Blender
Returns
True if the path is valid. It doesn't create or checks format if the blender folder exists. It does check if the parent of the path exists.

Definition at line 66 of file gpu_shader_builder_stubs.cc.

References BKE_tempdir_base(), BLI_is_dir(), BLI_path_join, GHOST_getUserSpecialDir(), GHOST_kUserSpecialDirCaches, and SEP_STR.

Referenced by blender::gpu::cache_dir_get(), and blender::ed::asset::index::AssetLibraryIndex::init_indices_base_path().

◆ BKE_material_defaults_free_gpu()

void BKE_material_defaults_free_gpu ( void )

Definition at line 143 of file gpu_shader_builder_stubs.cc.

◆ BKE_paint_face_set_overlay_color_get()

◆ CustomData_get_active_layer_index()

int CustomData_get_active_layer_index ( const struct CustomData * ,
eCustomDataType  )

Definition at line 160 of file gpu_shader_builder_stubs.cc.

◆ CustomData_get_offset()

int CustomData_get_offset ( const struct CustomData * ,
eCustomDataType  )

Definition at line 154 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable.

◆ CustomData_get_render_layer_index()

int CustomData_get_render_layer_index ( const struct CustomData * ,
eCustomDataType  )

Definition at line 165 of file gpu_shader_builder_stubs.cc.

◆ CustomData_has_layer()

bool CustomData_has_layer ( const struct CustomData * ,
eCustomDataType  )

Definition at line 170 of file gpu_shader_builder_stubs.cc.

◆ DRW_deferred_shader_remove()

◆ IMB_allocFromBuffer()

struct ImBuf * IMB_allocFromBuffer ( const uint8_t * byte_buffer,
const float * float_buffer,
unsigned int w,
unsigned int h,
unsigned int channels )

◆ IMB_allocImBuf()

struct ImBuf * IMB_allocImBuf ( unsigned int x,
unsigned int y,
unsigned char planes,
unsigned int flags )

Definition at line 51 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable.

Referenced by accessor_get_ibuf(), add_ibuf_for_tile(), blender::realtime_compositor::FileOutput::add_pass(), blender::realtime_compositor::FileOutput::add_view(), BKE_icon_geom_rasterize(), BKE_previewimg_to_imbuf(), BKE_tracking_get_plane_imbuf(), BKE_tracking_get_search_imbuf(), BKE_tracking_sample_pattern(), BKE_tracking_stabilize_frame(), brush_painter_imbuf_new(), brush_painter_imbuf_partial_update(), blender::io::usd::cache_image_color(), blender::draw::image_engine::FloatBufferCache::cached_float_buffer(), colormanage_cache_put(), blender::realtime_compositor::compute_linear_buffer(), blender::imbuf::tests::create_6x2_test_image(), blender::imbuf::tests::create_6x2_test_image_fl(), create_missing_media_image(), create_src_image(), dynamicPaint_outputSurfaceImage(), ED_view3d_draw_offscreen_imbuf(), blender::compositor::DebugInfo::export_operation(), float_image_to_ibuf(), ibJpegImageFromCinfo(), image_acquire_ibuf(), image_get_render_result(), blender::ed::greasepencil::image_render::image_render_end(), IMB_font_preview(), IMB_half_x(), IMB_half_y(), IMB_ImBufFromStereo3d(), imb_load_dpx_cineon(), imb_load_filepath_thumbnail_openexr(), imb_load_filepath_thumbnail_svg(), imb_load_filepath_thumbnail_webp(), imb_load_jp2_stream(), imb_load_openexr(), imb_loadiris(), imb_loadwebp(), IMB_makemipmap(), IMB_onehalf(), IMB_remakemipmap(), imb_scale_via_transform(), IMB_stereo3d_ImBuf(), imb_stereo3d_squeeze_rect(), imb_stereo3d_squeeze_rectf(), IMB_thumb_load_font(), imbuf_alloc_temp_tile(), input_preprocess(), blender::imbuf::load_pixels(), Freestyle::Canvas::loadMap(), M_imbuf_new(), make_grayscale_ibuf_copy(), blender::ed::seq::make_sep_waveform_view_from_ibuf(), blender::ed::seq::make_vectorscope_view_from_ibuf(), blender::ed::seq::make_waveform_view_from_ibuf(), blender::ed::seq::make_zebra_view_from_ibuf(), blender::bke::node_preview_verify(), NSImageToImBuf(), paint_2d_lift_clone(), prepare_effect_imbufs(), RE_layer_load_from_file(), RE_render_result_rect_to_ibuf(), RE_RenderPassEnsureImBuf(), RE_RenderViewEnsureImBuf(), render_layer_allocate_pass(), Freestyle::SteerableViewMap::saveSteerableViewMap(), screen_opengl_render_doit(), screenshot_exec(), seq_disk_cache_read_file(), seq_render_effect_strip_impl(), seq_render_mask(), seq_render_scene_strip(), seq_render_strip(), seq_render_strip_stack(), blender::imbuf::tests::TEST(), thumb_create_ex(), blender::imbuf::tests::transform_2x_smaller(), blender::imbuf::tests::transform_fractional_larger(), ui_tooltip_data_from_button_or_extra_icon(), and blender::ed::object::write_external_bake_pixels().

◆ IMB_freeImBuf()

void IMB_freeImBuf ( ImBuf * ibuf)

Definition at line 46 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable.

Referenced by accessor_get_ibuf(), accessor_release_image_callback(), action_preview_render(), blender::ed::space_node::all_nodes_preview_update(), BKE_image_acquire_multilayer_view_ibuf(), BKE_image_add_generated(), BKE_image_has_ibuf(), BKE_image_memorypack(), BKE_image_pool_free(), BKE_image_reassign_tile(), BKE_image_release_ibuf(), BKE_image_render_write(), BKE_image_signal(), BKE_movieclip_build_proxy_frame(), BKE_movieclip_build_proxy_frame_for_ibuf(), BKE_movieclip_get_gpu_texture(), BKE_movieclip_get_size(), BKE_movieclip_get_stable_ibuf(), BKE_movieclip_has_frame(), BKE_movieclip_update_scopes(), BKE_previewimg_ensure(), BKE_tracking_get_pattern_imbuf(), BKE_tracking_refine_marker(), blend_file_thumb_from_camera(), blend_file_thumb_from_screenshot(), brush_free_data(), brush_painter_2d_refresh_cache(), brush_painter_2d_require_imbuf(), brush_painter_cache_2d_free(), brush_painter_imbuf_partial_update(), build_pict_list_from_anim(), build_pict_list_from_image_sequence(), blender::io::usd::cache_image_color(), blender::realtime_compositor::CachedImage::CachedImage(), blender::ed::seq::SeqScopes::cleanup(), blender::seq::ThumbnailCache::clear(), clip_draw_main(), clip_free(), clip_main_region_draw(), colormanage_cache_get(), colormanage_cache_handle_release(), blender::compositor::KeyingScreenOperation::compute_marker_points(), blender::realtime_compositor::compute_marker_points(), blender::compositor::MovieClipNode::convert_to_operations(), blender::compositor::MovieClipBaseOperation::deinit_execution(), detect_clip_source(), detect_features_exec(), blender::ed::sculpt_paint::paint::image::do_push_undo_tile(), do_render_sequencer(), do_render_strip_uncached(), draw_strip_thumbnails(), dynamicPaint_outputSurfaceImage(), ED_imapaint_dirty_region(), ED_space_clip_color_sample(), ED_space_clip_get_buffer(), ED_space_clip_get_position(), ED_space_clip_get_stable_buffer(), blender::compositor::DebugInfo::export_operation(), file_draw_tooltip_custom_func(), filelist_free_icons(), frame_cache_remove(), free_buffers(), GHOST_SystemCocoa::getClipboardImage(), GHOST_SystemWayland::getClipboardImage(), getClipboardImageImBuf(), gpu_texture_update_scaled(), icon_copy_rect(), icon_draw_size(), icon_free_data(), icon_verify_datatoc(), image_clipboard_paste_exec(), image_get_render_result(), image_init_color_management(), image_load_image_file(), image_load_movie_file(), image_memorypack_imbuf(), image_save_single(), image_undosys_step_encode(), IMB_anim_previewframe(), imb_gpu_get_data(), IMB_ImBufFromStereo3d(), imb_load_dpx_cineon(), imb_load_openexr(), IMB_makemipmap(), IMB_remakemipmap(), imb_scale_via_transform(), imb_stereo3d_squeeze_rect(), imb_stereo3d_squeeze_rectf(), IMB_thumb_load_font(), IMB_thumb_manage(), imbuf_save_post(), input_preprocess(), load_image_single(), blender::imbuf::load_pixels(), metadata_panel_context_draw(), metadata_panel_context_draw(), moviecache_destructor(), moviecache_valfree(), movieclip_build_proxy_ibuf(), movieclip_get_postprocessed_ibuf(), new_image_from_plane_marker_exec(), blender::bke::node_preview_free(), object_preview_render(), openanim(), paint_2d_op(), prefetch_movie_frame(), prefetch_task_func(), project_bucket_init(), proxy_task_func(), ptile_restore_runtime_map(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), GHOST_SystemWayland::putClipboardImage(), putClipboardImagePNG(), py_imbuf_dealloc(), py_imbuf_free(), RE_create_gp_pass(), RE_layer_load_from_file(), RE_render_result_rect_to_ibuf(), RE_WriteRenderViewsMovie(), release_keyframed_image_buffers(), blender::seq::ThumbnailCache::remove_entry(), render_result_free(), render_result_views_free(), sample_plane_marker_image_for_operator(), scale_perf_impl(), screen_opengl_render_doit(), screen_opengl_views_setup(), screenshot_exec(), SEQ_add_image_init_alpha_mode(), SEQ_add_image_strip(), seq_cache_put(), seq_cache_valfree(), seq_disk_cache_read_file(), SEQ_modifier_apply_stack(), seq_prefetch_frames(), seq_prefetch_seq_has_disk_cache(), seq_proxy_build_frame(), seq_render_effect_strip_impl(), seq_render_image_strip(), seq_render_movie_strip(), seq_render_scene_strip(), seq_render_strip_stack(), sequencer_calc_scopes(), sequencer_draw_preview(), sequencer_make_scope(), sequencer_sample_apply(), blender::ed::space_node::shader_preview_startjob(), studiolight_load_equirect_image(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), blender::imbuf::tests::TEST(), texture_paint_image_from_view_exec(), thumb_create_ex(), thumb_create_or_fail(), blender::seq::thumbnail_cache_maintain_capacity(), track_get_search_floatbuf(), blender::imbuf::tests::transform_2x_smaller(), blender::imbuf::tests::transform_fractional_larger(), ubuf_from_image_all_tiles(), uhandle_restore_list(), ui_but_free(), ui_draw_but_TRACKPREVIEW(), UI_icon_to_preview(), UI_icons_free_drawinfo(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_from_clip(), ui_tooltip_from_image(), ui_tooltip_from_vfont(), ui_tooltip_region_free_cb(), uiTemplateMovieclipInformation(), uiTemplateRecentFiles_tooltip_func(), update_image_from_plane_marker_exec(), wm_file_write(), wm_main_playanim_intern(), blender::ed::object::write_external_bake_pixels(), blender::draw::image_engine::FloatImageBuffer::~FloatImageBuffer(), GHOST_EventDragnDrop::~GHOST_EventDragnDrop(), and blender::ed::space_node::NestedTreePreviews::~NestedTreePreviews().

◆ IMB_ibImageFromMemory()

struct ImBuf * IMB_ibImageFromMemory ( const unsigned char * mem,
size_t size,
int flags,
char colorspace[IM_MAX_SPACE],
const char * descr )

◆ IMB_saveiff()

◆ ntreeGPUMaterialNodes()

void ntreeGPUMaterialNodes ( struct bNodeTree * localtree,
struct GPUMaterial * mat )

This one needs to work on a local tree.

Definition at line 180 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable.

◆ UI_GetThemeColor3fv()

void UI_GetThemeColor3fv ( int colorid,
float col[3] )

Get three color values, scaled to 0.0-1.0 range.

Definition at line 82 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable, col, float, g_theme_state, bThemeState::spacetype, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by acf_generic_dataexpand_color(), acf_generic_root_color(), acf_group_color(), acf_summary_color(), annotation_draw_onionskins(), blender::draw::overlay::Resources::background_color_get(), blender::draw::overlay::ModeTransfer::begin_sync(), clip_draw_dopesheet_main(), blender::ed::curves::curve_draw_stroke_3d(), curve_draw_stroke_3d(), blender::ed::animation::greasepencil::datablock_color(), blender::ed::space_node::draw_background_color(), draw_fcurve_selected_handle_vertices(), draw_primitive_view(), draw_single_handle(), ED_region_do_draw(), ED_region_grid_draw(), ED_view3d_background_color_get(), ED_view3d_text_colors_get(), blender::ed::view3d::geometry_nodes_gizmos::get_axis_gizmo_colors(), gizmo_axis_draw(), gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gpencil_layer_final_tint_and_alpha_get(), graph_refresh_fcurve_colors(), grease_pencil_layer_final_tint_and_alpha_get(), immUniformThemeColor3(), immUniformThemeColorAlpha(), blender::ed::animation::greasepencil::layer_group_color(), nla_strip_get_color_inside(), blender::ed::outliner::outliner_draw_highlights(), OVERLAY_mode_transfer_cache_populate(), plane_track_colors(), region_draw_emboss(), region_draw_status_text(), seq_draw_image_origin_and_outline(), set_fcurve_vertex_color(), tool_generic_create_gizmo(), track_channel_color(), track_colors(), UI_view2d_dot_grid_draw(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_style(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), and WIDGETGROUP_xform_shear_setup().

◆ UI_GetThemeColor4fv()

void UI_GetThemeColor4fv ( int colorid,
float col[4] )

Get four color values, scaled to 0.0-1.0 range.

Definition at line 77 of file gpu_shader_builder_stubs.cc.

References BLI_assert_unreachable, col, float, g_theme_state, bThemeState::spacetype, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by blender::draw::overlay::MeshUVs::begin_sync(), channel_ui_data_init(), blender::ed::greasepencil::control_point_colors_and_sizes(), draw_background(), draw_fcurve_active_handle_vertices(), draw_vertical_scale_indicators(), drawAutoKeyWarning(), DRW_globals_update(), ED_region_clear(), ED_region_grid_draw(), ED_screen_draw_edges(), blender::draw::overlay::EditText::end_sync(), blender::draw::overlay::MeshUVs::end_sync(), file_draw_preview(), blender::ed::space_node::frame_node_draw_background(), gizmo2d_get_axis_color(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_get_axis_color(), icon_draw_icon(), icon_draw_rect_input_text(), icon_draw_size(), imm_draw_box_checker_2d(), immUniformThemeColor(), nla_action_get_color(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_zones_and_frames(), blender::ed::space_node::node_socket_outline_color_get(), blender::ed::space_node::nodelink_batch_draw(), blender::ed::space_node::nodelink_get_draw_config(), blender::ed::outliner::outliner_back(), blender::ed::outliner::outliner_draw_highlights(), blender::ed::outliner::outliner_draw_iconrow_doit(), blender::ed::outliner::outliner_draw_tree_element(), blender::ed::outliner::outliner_icon_background_colors(), OVERLAY_edit_gpencil_legacy_cache_init(), OVERLAY_edit_text_draw(), OVERLAY_edit_uv_cache_init(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), radial_control_paint_cursor(), region_draw_status_text(), screen_draw_dock_preview(), screen_draw_split_preview(), stitch_draw(), timeline_cache_draw_geometry_nodes(), timeline_cache_draw_single(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_button_sections_alignment_separator(), ui_draw_button_sections_background(), UI_panel_category_draw_all(), ui_tooltip_region_draw_cb(), widget_pulldownbut(), and wm_drop_redalert_draw().

◆ UI_GetThemeColorBlend3ubv()

◆ UI_GetThemeColorBlendShade4fv()

◆ UI_GetThemeColorShade4fv()

◆ UI_GetThemeColorShadeAlpha4fv()

◆ UI_GetThemeColorShadeAlpha4ubv()

void UI_GetThemeColorShadeAlpha4ubv ( int colorid,
int coloffset,
int alphaoffset,
unsigned char col[4] )

Get four color values ranged between 0 and 255; includes the alpha channel.

Definition at line 110 of file gpu_shader_builder_stubs.cc.

References b, BLI_assert_unreachable, CLAMP, col, g_theme_state, int, bThemeState::spacetype, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by immThemeColorShadeAlpha().

Variable Documentation

◆ build_hash

◆ G

Global G

Defined in blender.cc

Definition at line 37 of file gpu_shader_builder_stubs.cc.

◆ U