|
Blender V5.0
|
#include "BKE_global.hh"#include "BLI_utildefines.h"#include "GPU_capabilities.hh"#include "GPU_shader.hh"#include "gpu_shader_private.hh"Go to the source code of this file.
Classes | |
| struct | BuiltinShader |
Functions | |
| static const char * | builtin_shader_create_info_name (GPUBuiltinShader shader) |
| static const char * | builtin_shader_create_info_name_clipped (GPUBuiltinShader shader) |
| blender::gpu::Shader * | GPU_shader_get_builtin_shader_with_config (GPUBuiltinShader shader, GPUShaderConfig sh_cfg) |
| static void | gpu_shader_warm_builtin_shader_async (GPUBuiltinShader shader, GPUShaderConfig sh_cfg) |
| blender::gpu::Shader * | GPU_shader_get_builtin_shader (GPUBuiltinShader shader) |
| void | GPU_shader_builtin_warm_up () |
| void | GPU_shader_free_builtin_shaders () |
Variables | |
| static BuiltinShader * | builtin_shaders [GPU_SHADER_CFG_LEN][GPU_SHADER_BUILTIN_LEN] = {{nullptr}} |
|
static |
Definition at line 27 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_NODE_SOCKET, GPU_SHADER_2D_NODE_SOCKET_INST, GPU_SHADER_2D_NODELINK, 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_IMAGE_COLOR_SCENE_LINEAR_TO_REC709_SRGB, GPU_SHADER_3D_IMAGE_SCENE_LINEAR_TO_REC709_SRGB, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_POINT_FLAT_COLOR, GPU_SHADER_3D_POINT_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_SCOPE_RASTER, GPU_SHADER_SEQUENCER_SCOPE_RESOLVE, GPU_SHADER_SEQUENCER_STRIPS, GPU_SHADER_SEQUENCER_THUMBS, GPU_SHADER_SEQUENCER_ZEBRA, GPU_SHADER_SIMPLE_LIGHTING, GPU_SHADER_TEXT, and GPU_SHADER_XR_RAYCAST.
Referenced by GPU_shader_get_builtin_shader_with_config(), and gpu_shader_warm_builtin_shader_async().
|
static |
Definition at line 134 of file gpu_shader_builtin.cc.
References BLI_assert_msg, 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_POLYLINE_UNIFORM_COLOR, GPU_SHADER_3D_SMOOTH_COLOR, and GPU_SHADER_3D_UNIFORM_COLOR.
Referenced by GPU_shader_get_builtin_shader_with_config(), and gpu_shader_warm_builtin_shader_async().
| void GPU_shader_builtin_warm_up | ( | ) |
Definition at line 248 of file gpu_shader_builtin.cc.
References G, G_DEBUG_GPU, GPU_backend_get_type(), GPU_BACKEND_OPENGL, GPU_SHADER_2D_AREA_BORDERS, GPU_SHADER_2D_DIAG_STRIPES, GPU_SHADER_2D_IMAGE_DESATURATE_COLOR, GPU_SHADER_2D_IMAGE_RECT_COLOR, GPU_SHADER_2D_NODE_SOCKET, GPU_SHADER_2D_WIDGET_BASE, GPU_SHADER_2D_WIDGET_BASE_INST, GPU_SHADER_2D_WIDGET_SHADOW, GPU_SHADER_3D_IMAGE_COLOR, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_POLYLINE_SMOOTH_COLOR, GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_SHADER_CFG_DEFAULT, GPU_SHADER_TEXT, gpu_shader_warm_builtin_shader_async(), and GPU_use_subprocess_compilation().
Referenced by GPU_init().
| void GPU_shader_free_builtin_shaders | ( | ) |
Definition at line 284 of file gpu_shader_builtin.cc.
References builtin_shaders, GPU_SHADER_BUILTIN_LEN, GPU_SHADER_CFG_LEN, GPU_shader_unbind(), and i.
Referenced by GPU_exit().
| blender::gpu::Shader * GPU_shader_get_builtin_shader | ( | GPUBuiltinShader | shader | ) |
Definition at line 243 of file gpu_shader_builtin.cc.
References GPU_SHADER_CFG_DEFAULT, and GPU_shader_get_builtin_shader_with_config().
Referenced by blender::draw::overlay::Cursor::begin_sync(), bpygpu_shader_is_polyline(), GPU_indexbuf_build_curves_on_device(), immBindBuiltinProgram(), immDrawPixelsTexSetup(), pygpu_batch_draw(), blender::render::hydra::ViewportEngine::render(), blender::ed::vse::sequencer_draw_scopes(), blender::ed::vse::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_submit_only(), blender::draw::test_draw_visibility(), blender::ed::vse::ThumbsDrawBatch::ThumbsDrawBatch(), and wm_draw_region_blend().
| blender::gpu::Shader * GPU_shader_get_builtin_shader_with_config | ( | GPUBuiltinShader | shader, |
| GPUShaderConfig | sh_cfg ) |
Definition at line 157 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_uniform_1i(), and blender::gpu::Shader::is_polyline.
Referenced by GPU_batch_program_set_builtin_with_config(), GPU_shader_get_builtin_shader(), and pygpu_shader_from_builtin().
|
static |
Definition at line 210 of file gpu_shader_builtin.cc.
References BLI_assert, builtin_shader_create_info_name(), builtin_shader_create_info_name_clipped(), builtin_shaders, GPU_SHADER_BUILTIN_LEN, GPU_SHADER_CFG_CLIPPED, and GPU_SHADER_CFG_DEFAULT.
Referenced by GPU_shader_builtin_warm_up().
|
static |
Definition at line 25 of file gpu_shader_builtin.cc.
Referenced by GPU_shader_free_builtin_shaders(), GPU_shader_get_builtin_shader_with_config(), and gpu_shader_warm_builtin_shader_async().