|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| static const char * | builtin_shader_create_info_name (eGPUBuiltinShader shader) |
| static const char * | builtin_shader_create_info_name_clipped (eGPUBuiltinShader shader) |
| GPUShader * | GPU_shader_get_builtin_shader_with_config (eGPUBuiltinShader shader, eGPUShaderConfig sh_cfg) |
| GPUShader * | GPU_shader_get_builtin_shader (eGPUBuiltinShader shader) |
| void | GPU_shader_free_builtin_shaders () |
Variables | |
| static GPUShader * | builtin_shaders [GPU_SHADER_CFG_LEN][GPU_SHADER_BUILTIN_LEN] = {{nullptr}} |
|
static |
Definition at line 17 of file gpu_shader_builtin.cc.
References BLI_assert_unreachable, GPU_SHADER_2D_AREA_BORDERS, GPU_SHADER_2D_CHECKER, GPU_SHADER_2D_DIAG_STRIPES, GPU_SHADER_2D_IMAGE_DESATURATE_COLOR, GPU_SHADER_2D_IMAGE_OVERLAYS_MERGE, GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE, GPU_SHADER_2D_IMAGE_RECT_COLOR, GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR, GPU_SHADER_2D_NODELINK, GPU_SHADER_2D_NODELINK_INST, GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA, GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA, GPU_SHADER_2D_WIDGET_BASE, GPU_SHADER_2D_WIDGET_BASE_INST, GPU_SHADER_2D_WIDGET_SHADOW, GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR, GPU_SHADER_3D_DEPTH_ONLY, GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_IMAGE, GPU_SHADER_3D_IMAGE_COLOR, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA, GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR, GPU_SHADER_3D_POLYLINE_CLIPPED_UNIFORM_COLOR, GPU_SHADER_3D_POLYLINE_FLAT_COLOR, GPU_SHADER_3D_POLYLINE_SMOOTH_COLOR, GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR, GPU_SHADER_3D_SMOOTH_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_SHADER_GPENCIL_STROKE, GPU_SHADER_ICON, GPU_SHADER_ICON_MULTI, GPU_SHADER_INDEXBUF_LINES, GPU_SHADER_INDEXBUF_POINTS, GPU_SHADER_INDEXBUF_TRIS, GPU_SHADER_KEYFRAME_SHAPE, GPU_SHADER_SEQUENCER_STRIPS, GPU_SHADER_SEQUENCER_THUMBS, GPU_SHADER_SIMPLE_LIGHTING, and GPU_SHADER_TEXT.
Referenced by GPU_shader_get_builtin_shader_with_config().
|
static |
Definition at line 106 of file gpu_shader_builtin.cc.
References BLI_assert_unreachable, GPU_SHADER_3D_DEPTH_ONLY, GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA, GPU_SHADER_3D_SMOOTH_COLOR, and GPU_SHADER_3D_UNIFORM_COLOR.
Referenced by GPU_shader_get_builtin_shader_with_config().
| void GPU_shader_free_builtin_shaders | ( | ) |
Definition at line 175 of file gpu_shader_builtin.cc.
References builtin_shaders, GPU_SHADER_BUILTIN_LEN, GPU_SHADER_CFG_LEN, and GPU_shader_free().
Referenced by gpu_codegen_exit().
| GPUShader * GPU_shader_get_builtin_shader | ( | eGPUBuiltinShader | shader | ) |
Definition at line 170 of file gpu_shader_builtin.cc.
References GPU_SHADER_CFG_DEFAULT, and GPU_shader_get_builtin_shader_with_config().
Referenced by DRW_draw_cursor(), DRW_draw_cursor_2d_ex(), GPU_indexbuf_build_curves_on_device(), immBindBuiltinProgram(), immDrawPixelsTexSetup(), blender::render::hydra::ViewportEngine::render(), blender::ed::seq::StripsDrawBatch::StripsDrawBatch(), blender::draw::test_draw_pass_all_commands(), blender::draw::test_draw_pass_multi_draw(), blender::draw::test_draw_pass_simple_draw(), blender::draw::test_draw_pass_sub_ordering(), blender::draw::test_draw_resource_id_gen(), blender::draw::test_draw_visibility(), ThumbsDrawBatch::ThumbsDrawBatch(), and wm_draw_region_blend().
| GPUShader * GPU_shader_get_builtin_shader_with_config | ( | eGPUBuiltinShader | shader, |
| eGPUShaderConfig | sh_cfg ) |
Definition at line 127 of file gpu_shader_builtin.cc.
References BLI_assert, builtin_shader_create_info_name(), builtin_shader_create_info_name_clipped(), builtin_shaders, ELEM, GPU_SHADER_3D_POLYLINE_CLIPPED_UNIFORM_COLOR, GPU_SHADER_3D_POLYLINE_FLAT_COLOR, GPU_SHADER_3D_POLYLINE_SMOOTH_COLOR, GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR, GPU_shader_bind(), GPU_SHADER_BUILTIN_LEN, GPU_SHADER_CFG_CLIPPED, GPU_SHADER_CFG_DEFAULT, GPU_SHADER_CFG_LEN, GPU_shader_create_from_info_name(), and GPU_shader_uniform_1i().
Referenced by GPU_batch_program_set_builtin_with_config(), GPU_shader_get_builtin_shader(), and pygpu_shader_from_builtin().
|
static |
Definition at line 15 of file gpu_shader_builtin.cc.
Referenced by GPU_shader_free_builtin_shaders(), and GPU_shader_get_builtin_shader_with_config().