Blender V4.3
overlay_shader.cc File Reference
#include "DRW_render.hh"
#include "GPU_shader.hh"
#include "UI_resources.hh"
#include "gpu_shader_create_info.hh"
#include "overlay_private.hh"

Go to the source code of this file.

Classes

struct  OVERLAY_Shaders

Functions

GPUShaderOVERLAY_shader_antialiasing ()
GPUShaderOVERLAY_shader_background ()
GPUShaderOVERLAY_shader_clipbound ()
GPUShaderOVERLAY_shader_depth_only ()
GPUShaderOVERLAY_shader_edit_mesh_depth ()
GPUShaderOVERLAY_shader_edit_mesh_vert ()
GPUShaderOVERLAY_shader_edit_mesh_edge (bool use_flat_interp)
GPUShaderOVERLAY_shader_armature_sphere (bool use_outline)
GPUShaderOVERLAY_shader_armature_shape (bool use_outline)
GPUShaderOVERLAY_shader_armature_shape_wire ()
GPUShaderOVERLAY_shader_armature_envelope (bool use_outline)
GPUShaderOVERLAY_shader_armature_stick ()
GPUShaderOVERLAY_shader_armature_degrees_of_freedom_wire ()
GPUShaderOVERLAY_shader_armature_degrees_of_freedom_solid ()
GPUShaderOVERLAY_shader_armature_wire ()
GPUShaderOVERLAY_shader_edit_curve_handle ()
GPUShaderOVERLAY_shader_edit_curve_point ()
GPUShaderOVERLAY_shader_edit_curves_handle ()
GPUShaderOVERLAY_shader_edit_curve_wire ()
GPUShaderOVERLAY_shader_edit_gpencil_guide_point ()
GPUShaderOVERLAY_shader_edit_gpencil_point ()
GPUShaderOVERLAY_shader_edit_gpencil_wire ()
GPUShaderOVERLAY_shader_edit_lattice_point ()
GPUShaderOVERLAY_shader_edit_lattice_wire ()
GPUShaderOVERLAY_shader_edit_mesh_face ()
GPUShaderOVERLAY_shader_edit_mesh_facedot ()
GPUShaderOVERLAY_shader_edit_mesh_normal ()
GPUShaderOVERLAY_shader_edit_mesh_analysis ()
GPUShaderOVERLAY_shader_edit_mesh_skin_root ()
GPUShaderOVERLAY_shader_edit_particle_strand ()
GPUShaderOVERLAY_shader_edit_particle_point ()
GPUShaderOVERLAY_shader_extra (bool is_select)
GPUShaderOVERLAY_shader_extra_grid ()
GPUShaderOVERLAY_shader_extra_groundline ()
GPUShaderOVERLAY_shader_extra_wire (bool use_object, bool is_select)
GPUShaderOVERLAY_shader_extra_loose_point ()
GPUShaderOVERLAY_shader_extra_point ()
GPUShaderOVERLAY_shader_facing ()
GPUShaderOVERLAY_shader_gpencil_canvas ()
GPUShaderOVERLAY_shader_grid ()
GPUShaderOVERLAY_shader_grid_background ()
GPUShaderOVERLAY_shader_grid_image ()
GPUShaderOVERLAY_shader_edit_uv_stencil_image ()
GPUShaderOVERLAY_shader_edit_uv_mask_image ()
GPUShaderOVERLAY_shader_image ()
GPUShaderOVERLAY_shader_motion_path_line ()
GPUShaderOVERLAY_shader_motion_path_vert ()
GPUShaderOVERLAY_shader_outline_prepass (bool use_wire)
GPUShaderOVERLAY_shader_outline_prepass_curves ()
GPUShaderOVERLAY_shader_outline_prepass_gpencil ()
GPUShaderOVERLAY_shader_outline_prepass_pointcloud ()
GPUShaderOVERLAY_shader_outline_detect ()
GPUShaderOVERLAY_shader_paint_face ()
GPUShaderOVERLAY_shader_paint_point ()
GPUShaderOVERLAY_shader_paint_texture ()
GPUShaderOVERLAY_shader_paint_vertcol ()
GPUShaderOVERLAY_shader_paint_weight (const bool shading)
GPUShaderOVERLAY_shader_paint_wire ()
GPUShaderOVERLAY_shader_particle_dot ()
GPUShaderOVERLAY_shader_particle_shape ()
GPUShaderOVERLAY_shader_sculpt_mask ()
GPUShaderOVERLAY_shader_sculpt_curves_selection ()
GPUShaderOVERLAY_shader_sculpt_curves_cage ()
GPUShaderOVERLAY_shader_viewer_attribute_mesh ()
GPUShaderOVERLAY_shader_viewer_attribute_pointcloud ()
GPUShaderOVERLAY_shader_viewer_attribute_curve ()
GPUShaderOVERLAY_shader_viewer_attribute_curves ()
GPUShaderOVERLAY_shader_uniform_color ()
GPUShaderOVERLAY_shader_uniform_color_pointcloud ()
GPUShaderOVERLAY_shader_volume_velocity (bool use_needle, bool use_mac)
GPUShaderOVERLAY_shader_volume_gridlines (bool color_with_flags, bool color_range)
GPUShaderOVERLAY_shader_wireframe_select ()
GPUShaderOVERLAY_shader_wireframe (bool custom_bias)
GPUShaderOVERLAY_shader_xray_fade ()
OVERLAY_InstanceFormatsOVERLAY_shader_instance_formats_get ()
void OVERLAY_shader_free ()
Edit UV shaders
GPUShaderOVERLAY_shader_edit_uv_edges_get ()
GPUShaderOVERLAY_shader_edit_uv_edges_for_edge_select_get ()
GPUShaderOVERLAY_shader_edit_uv_face_get ()
GPUShaderOVERLAY_shader_edit_uv_face_dots_get ()
GPUShaderOVERLAY_shader_edit_uv_verts_get ()
GPUShaderOVERLAY_shader_edit_uv_stretching_area_get ()
GPUShaderOVERLAY_shader_edit_uv_stretching_angle_get ()
GPUShaderOVERLAY_shader_edit_uv_tiled_image_borders_get ()

Variables

struct { 
   OVERLAY_Shaders   sh_data [GPU_SHADER_CFG_LEN
e_data = {{{nullptr}}}
static OVERLAY_InstanceFormats g_formats = {nullptr}

Function Documentation

◆ OVERLAY_shader_antialiasing()

GPUShader * OVERLAY_shader_antialiasing ( )

Definition at line 122 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_antialiasing_cache_init().

◆ OVERLAY_shader_armature_degrees_of_freedom_solid()

GPUShader * OVERLAY_shader_armature_degrees_of_freedom_solid ( )

◆ OVERLAY_shader_armature_degrees_of_freedom_wire()

GPUShader * OVERLAY_shader_armature_degrees_of_freedom_wire ( )

◆ OVERLAY_shader_armature_envelope()

GPUShader * OVERLAY_shader_armature_envelope ( bool use_outline)

◆ OVERLAY_shader_armature_shape()

GPUShader * OVERLAY_shader_armature_shape ( bool use_outline)

◆ OVERLAY_shader_armature_shape_wire()

GPUShader * OVERLAY_shader_armature_shape_wire ( )

◆ OVERLAY_shader_armature_sphere()

◆ OVERLAY_shader_armature_stick()

◆ OVERLAY_shader_armature_wire()

◆ OVERLAY_shader_background()

GPUShader * OVERLAY_shader_background ( )

Definition at line 131 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_background_cache_init().

◆ OVERLAY_shader_clipbound()

GPUShader * OVERLAY_shader_clipbound ( )

Definition at line 140 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_background_cache_init().

◆ OVERLAY_shader_depth_only()

◆ OVERLAY_shader_edit_curve_handle()

◆ OVERLAY_shader_edit_curve_point()

◆ OVERLAY_shader_edit_curve_wire()

◆ OVERLAY_shader_edit_curves_handle()

◆ OVERLAY_shader_edit_gpencil_guide_point()

◆ OVERLAY_shader_edit_gpencil_point()

◆ OVERLAY_shader_edit_gpencil_wire()

◆ OVERLAY_shader_edit_lattice_point()

◆ OVERLAY_shader_edit_lattice_wire()

◆ OVERLAY_shader_edit_mesh_analysis()

◆ OVERLAY_shader_edit_mesh_depth()

◆ OVERLAY_shader_edit_mesh_edge()

GPUShader * OVERLAY_shader_edit_mesh_edge ( bool use_flat_interp)

◆ OVERLAY_shader_edit_mesh_face()

◆ OVERLAY_shader_edit_mesh_facedot()

◆ OVERLAY_shader_edit_mesh_normal()

◆ OVERLAY_shader_edit_mesh_skin_root()

GPUShader * OVERLAY_shader_edit_mesh_skin_root ( )

◆ OVERLAY_shader_edit_mesh_vert()

◆ OVERLAY_shader_edit_particle_point()

◆ OVERLAY_shader_edit_particle_strand()

◆ OVERLAY_shader_edit_uv_edges_for_edge_select_get()

GPUShader * OVERLAY_shader_edit_uv_edges_for_edge_select_get ( )

Definition at line 1074 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_edges_get()

GPUShader * OVERLAY_shader_edit_uv_edges_get ( )

Definition at line 1065 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_face_dots_get()

GPUShader * OVERLAY_shader_edit_uv_face_dots_get ( )

Definition at line 1093 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_face_get()

GPUShader * OVERLAY_shader_edit_uv_face_get ( )

Definition at line 1084 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_mask_image()

GPUShader * OVERLAY_shader_edit_uv_mask_image ( )

Definition at line 657 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_stencil_image()

GPUShader * OVERLAY_shader_edit_uv_stencil_image ( )

Definition at line 647 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_stretching_angle_get()

GPUShader * OVERLAY_shader_edit_uv_stretching_angle_get ( )

Definition at line 1123 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_stretching_area_get()

GPUShader * OVERLAY_shader_edit_uv_stretching_area_get ( )

Definition at line 1112 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_tiled_image_borders_get()

GPUShader * OVERLAY_shader_edit_uv_tiled_image_borders_get ( )

Definition at line 1134 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_edit_uv_verts_get()

GPUShader * OVERLAY_shader_edit_uv_verts_get ( )

Definition at line 1102 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_edit_uv_cache_init().

◆ OVERLAY_shader_extra()

GPUShader * OVERLAY_shader_extra ( bool is_select)

◆ OVERLAY_shader_extra_grid()

◆ OVERLAY_shader_extra_groundline()

◆ OVERLAY_shader_extra_loose_point()

GPUShader * OVERLAY_shader_extra_loose_point ( )

◆ OVERLAY_shader_extra_point()

◆ OVERLAY_shader_extra_wire()

GPUShader * OVERLAY_shader_extra_wire ( bool use_object,
bool is_select )

◆ OVERLAY_shader_facing()

◆ OVERLAY_shader_free()

void OVERLAY_shader_free ( )

Definition at line 1216 of file overlay_shader.cc.

References ARRAY_SIZE, DRW_SHADER_FREE_SAFE, e_data, g_formats, MEM_SAFE_FREE, and sh_data.

Referenced by OVERLAY_engine_free().

◆ OVERLAY_shader_gpencil_canvas()

◆ OVERLAY_shader_grid()

GPUShader * OVERLAY_shader_grid ( )

Definition at line 620 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_grid_cache_init().

◆ OVERLAY_shader_grid_background()

GPUShader * OVERLAY_shader_grid_background ( )

Definition at line 629 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_grid_cache_init().

◆ OVERLAY_shader_grid_image()

GPUShader * OVERLAY_shader_grid_image ( )

Definition at line 638 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_grid_cache_init().

◆ OVERLAY_shader_image()

◆ OVERLAY_shader_instance_formats_get()

◆ OVERLAY_shader_motion_path_line()

◆ OVERLAY_shader_motion_path_vert()

◆ OVERLAY_shader_outline_detect()

GPUShader * OVERLAY_shader_outline_detect ( )

Definition at line 756 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_outline_cache_init().

◆ OVERLAY_shader_outline_prepass()

GPUShader * OVERLAY_shader_outline_prepass ( bool use_wire)

◆ OVERLAY_shader_outline_prepass_curves()

GPUShader * OVERLAY_shader_outline_prepass_curves ( )

◆ OVERLAY_shader_outline_prepass_gpencil()

GPUShader * OVERLAY_shader_outline_prepass_gpencil ( )

◆ OVERLAY_shader_outline_prepass_pointcloud()

GPUShader * OVERLAY_shader_outline_prepass_pointcloud ( )

◆ OVERLAY_shader_paint_face()

◆ OVERLAY_shader_paint_point()

◆ OVERLAY_shader_paint_texture()

◆ OVERLAY_shader_paint_vertcol()

◆ OVERLAY_shader_paint_weight()

GPUShader * OVERLAY_shader_paint_weight ( const bool shading)

◆ OVERLAY_shader_paint_wire()

◆ OVERLAY_shader_particle_dot()

◆ OVERLAY_shader_particle_shape()

◆ OVERLAY_shader_sculpt_curves_cage()

◆ OVERLAY_shader_sculpt_curves_selection()

GPUShader * OVERLAY_shader_sculpt_curves_selection ( )

◆ OVERLAY_shader_sculpt_mask()

◆ OVERLAY_shader_uniform_color()

◆ OVERLAY_shader_uniform_color_pointcloud()

GPUShader * OVERLAY_shader_uniform_color_pointcloud ( )

◆ OVERLAY_shader_viewer_attribute_curve()

◆ OVERLAY_shader_viewer_attribute_curves()

◆ OVERLAY_shader_viewer_attribute_mesh()

◆ OVERLAY_shader_viewer_attribute_pointcloud()

GPUShader * OVERLAY_shader_viewer_attribute_pointcloud ( )

◆ OVERLAY_shader_volume_gridlines()

GPUShader * OVERLAY_shader_volume_gridlines ( bool color_with_flags,
bool color_range )

Definition at line 999 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_volume_extra().

◆ OVERLAY_shader_volume_velocity()

GPUShader * OVERLAY_shader_volume_velocity ( bool use_needle,
bool use_mac )

Definition at line 974 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_volume_extra().

◆ OVERLAY_shader_wireframe()

GPUShader * OVERLAY_shader_wireframe ( bool custom_bias)

◆ OVERLAY_shader_wireframe_select()

◆ OVERLAY_shader_xray_fade()

GPUShader * OVERLAY_shader_xray_fade ( )

Definition at line 1052 of file overlay_shader.cc.

References e_data, GPU_shader_create_from_info_name(), and sh_data.

Referenced by OVERLAY_antialiasing_cache_init().

Variable Documentation

◆ [struct]

struct { ... } e_data

◆ g_formats

◆ sh_data

Definition at line 119 of file overlay_shader.cc.