Blender V4.3
basic_shader.cc File Reference
#include "DRW_render.hh"
#include "GPU_shader.hh"
#include "basic_private.h"

Go to the source code of this file.

Classes

struct  BASIC_Shaders

Functions

GPUShaderBASIC_shaders_depth_sh_get (eGPUShaderConfig config)
GPUShaderBASIC_shaders_pointcloud_depth_sh_get (eGPUShaderConfig config)
GPUShaderBASIC_shaders_curves_depth_sh_get (eGPUShaderConfig config)
GPUShaderBASIC_shaders_depth_conservative_sh_get (eGPUShaderConfig config)
GPUShaderBASIC_shaders_pointcloud_depth_conservative_sh_get (eGPUShaderConfig config)
void BASIC_shaders_free ()

Variables

char datatoc_basic_depth_frag_glsl []
char datatoc_basic_depth_vert_glsl []
char datatoc_basic_conservative_depth_geom_glsl []
char datatoc_common_view_lib_glsl []
char datatoc_common_pointcloud_lib_glsl []
struct { 
   BASIC_Shaders   sh_data [GPU_SHADER_CFG_LEN
e_data = {{{nullptr}}}

Function Documentation

◆ BASIC_shaders_curves_depth_sh_get()

GPUShader * BASIC_shaders_curves_depth_sh_get ( eGPUShaderConfig config)

Definition at line 58 of file basic_shader.cc.

References e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), and sh_data.

Referenced by basic_cache_init().

◆ BASIC_shaders_depth_conservative_sh_get()

GPUShader * BASIC_shaders_depth_conservative_sh_get ( eGPUShaderConfig config)

Definition at line 68 of file basic_shader.cc.

References e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), and sh_data.

Referenced by basic_cache_init().

◆ BASIC_shaders_depth_sh_get()

GPUShader * BASIC_shaders_depth_sh_get ( eGPUShaderConfig config)

Definition at line 37 of file basic_shader.cc.

References e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), and sh_data.

Referenced by basic_cache_init().

◆ BASIC_shaders_free()

void BASIC_shaders_free ( void )

Definition at line 90 of file basic_shader.cc.

References DRW_SHADER_FREE_SAFE, e_data, and GPU_SHADER_CFG_LEN.

Referenced by basic_engine_free().

◆ BASIC_shaders_pointcloud_depth_conservative_sh_get()

GPUShader * BASIC_shaders_pointcloud_depth_conservative_sh_get ( eGPUShaderConfig config)

Definition at line 79 of file basic_shader.cc.

References e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), and sh_data.

Referenced by basic_cache_init().

◆ BASIC_shaders_pointcloud_depth_sh_get()

GPUShader * BASIC_shaders_pointcloud_depth_sh_get ( eGPUShaderConfig config)

Definition at line 47 of file basic_shader.cc.

References e_data, GPU_SHADER_CFG_CLIPPED, GPU_shader_create_from_info_name(), and sh_data.

Referenced by basic_cache_init().

Variable Documentation

◆ datatoc_basic_conservative_depth_geom_glsl

char datatoc_basic_conservative_depth_geom_glsl[]

Definition at line 17 of file basic_shader.cc.

◆ datatoc_basic_depth_frag_glsl

char datatoc_basic_depth_frag_glsl[]

Definition at line 15 of file basic_shader.cc.

◆ datatoc_basic_depth_vert_glsl

char datatoc_basic_depth_vert_glsl[]

Definition at line 16 of file basic_shader.cc.

◆ datatoc_common_pointcloud_lib_glsl

char datatoc_common_pointcloud_lib_glsl[]

Definition at line 20 of file basic_shader.cc.

◆ datatoc_common_view_lib_glsl

char datatoc_common_view_lib_glsl[]

Definition at line 19 of file basic_shader.cc.

◆ [struct]

struct { ... } e_data

Referenced by BASIC_shaders_curves_depth_sh_get(), BASIC_shaders_depth_conservative_sh_get(), BASIC_shaders_depth_sh_get(), BASIC_shaders_free(), BASIC_shaders_pointcloud_depth_conservative_sh_get(), BASIC_shaders_pointcloud_depth_sh_get(), DRW_engine_select_framebuffer_get(), DRW_engine_select_texture_get(), DRW_select_engine_context_get(), DRW_shader_curves_refine_get(), DRW_shader_debug_draw_display_get(), DRW_shader_debug_print_display_get(), DRW_shader_draw_command_generate_get(), DRW_shader_draw_resource_finalize_get(), DRW_shader_draw_view_finalize_get(), DRW_shader_draw_visibility_compute_get(), DRW_shader_hair_refine_get(), DRW_shaders_free(), external_cache_init(), external_engine_free(), external_engine_init(), OVERLAY_shader_antialiasing(), OVERLAY_shader_armature_degrees_of_freedom_solid(), OVERLAY_shader_armature_degrees_of_freedom_wire(), OVERLAY_shader_armature_envelope(), OVERLAY_shader_armature_shape(), OVERLAY_shader_armature_shape_wire(), OVERLAY_shader_armature_sphere(), OVERLAY_shader_armature_stick(), OVERLAY_shader_armature_wire(), OVERLAY_shader_background(), OVERLAY_shader_clipbound(), 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(), OVERLAY_shader_edit_mesh_face(), OVERLAY_shader_edit_mesh_facedot(), OVERLAY_shader_edit_mesh_normal(), 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(), OVERLAY_shader_edit_uv_edges_get(), OVERLAY_shader_edit_uv_face_dots_get(), OVERLAY_shader_edit_uv_face_get(), OVERLAY_shader_edit_uv_mask_image(), OVERLAY_shader_edit_uv_stencil_image(), OVERLAY_shader_edit_uv_stretching_angle_get(), OVERLAY_shader_edit_uv_stretching_area_get(), OVERLAY_shader_edit_uv_tiled_image_borders_get(), OVERLAY_shader_edit_uv_verts_get(), OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_facing(), OVERLAY_shader_free(), OVERLAY_shader_gpencil_canvas(), OVERLAY_shader_grid(), OVERLAY_shader_grid_background(), OVERLAY_shader_grid_image(), OVERLAY_shader_image(), OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_shader_outline_detect(), OVERLAY_shader_outline_prepass(), OVERLAY_shader_outline_prepass_curves(), OVERLAY_shader_outline_prepass_gpencil(), 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(), OVERLAY_shader_paint_wire(), OVERLAY_shader_particle_dot(), OVERLAY_shader_particle_shape(), OVERLAY_shader_sculpt_curves_cage(), OVERLAY_shader_sculpt_curves_selection(), OVERLAY_shader_sculpt_mask(), OVERLAY_shader_uniform_color(), 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(), OVERLAY_shader_volume_gridlines(), OVERLAY_shader_volume_velocity(), OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), OVERLAY_shader_xray_fade(), select_cache_init(), select_cache_populate(), select_debug_engine_free(), select_debug_engine_init(), select_draw_scene(), select_engine_framebuffer_setup(), select_engine_free(), and select_engine_init().

◆ sh_data

Definition at line 34 of file basic_shader.cc.

Referenced by BASIC_shaders_curves_depth_sh_get(), BASIC_shaders_depth_conservative_sh_get(), BASIC_shaders_depth_sh_get(), BASIC_shaders_pointcloud_depth_conservative_sh_get(), BASIC_shaders_pointcloud_depth_sh_get(), blender::draw::image_engine::IMAGE_shader_depth_get(), blender::draw::image_engine::IMAGE_shader_image_get(), OVERLAY_shader_antialiasing(), OVERLAY_shader_armature_degrees_of_freedom_solid(), OVERLAY_shader_armature_degrees_of_freedom_wire(), OVERLAY_shader_armature_envelope(), OVERLAY_shader_armature_shape(), OVERLAY_shader_armature_shape_wire(), OVERLAY_shader_armature_sphere(), OVERLAY_shader_armature_stick(), OVERLAY_shader_armature_wire(), OVERLAY_shader_background(), OVERLAY_shader_clipbound(), 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(), OVERLAY_shader_edit_mesh_face(), OVERLAY_shader_edit_mesh_facedot(), OVERLAY_shader_edit_mesh_normal(), 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(), OVERLAY_shader_edit_uv_edges_get(), OVERLAY_shader_edit_uv_face_dots_get(), OVERLAY_shader_edit_uv_face_get(), OVERLAY_shader_edit_uv_mask_image(), OVERLAY_shader_edit_uv_stencil_image(), OVERLAY_shader_edit_uv_stretching_angle_get(), OVERLAY_shader_edit_uv_stretching_area_get(), OVERLAY_shader_edit_uv_tiled_image_borders_get(), OVERLAY_shader_edit_uv_verts_get(), OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_facing(), OVERLAY_shader_free(), OVERLAY_shader_gpencil_canvas(), OVERLAY_shader_grid(), OVERLAY_shader_grid_background(), OVERLAY_shader_grid_image(), OVERLAY_shader_image(), OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_shader_outline_detect(), OVERLAY_shader_outline_prepass(), OVERLAY_shader_outline_prepass_curves(), OVERLAY_shader_outline_prepass_gpencil(), 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(), OVERLAY_shader_paint_wire(), OVERLAY_shader_particle_dot(), OVERLAY_shader_particle_shape(), OVERLAY_shader_sculpt_curves_cage(), OVERLAY_shader_sculpt_curves_selection(), OVERLAY_shader_sculpt_mask(), OVERLAY_shader_uniform_color(), 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(), OVERLAY_shader_volume_gridlines(), OVERLAY_shader_volume_velocity(), OVERLAY_shader_wireframe(), OVERLAY_shader_wireframe_select(), OVERLAY_shader_xray_fade(), select_engine_free(), and select_engine_init().