Blender V5.0
gpu_shader_builtin.cc File Reference
#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::ShaderGPU_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::ShaderGPU_shader_get_builtin_shader (GPUBuiltinShader shader)
void GPU_shader_builtin_warm_up ()
void GPU_shader_free_builtin_shaders ()

Variables

static BuiltinShaderbuiltin_shaders [GPU_SHADER_CFG_LEN][GPU_SHADER_BUILTIN_LEN] = {{nullptr}}

Function Documentation

◆ builtin_shader_create_info_name()

const char * builtin_shader_create_info_name ( GPUBuiltinShader shader)
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().

◆ builtin_shader_create_info_name_clipped()

◆ GPU_shader_builtin_warm_up()

◆ GPU_shader_free_builtin_shaders()

void GPU_shader_free_builtin_shaders ( )

◆ GPU_shader_get_builtin_shader()

◆ GPU_shader_get_builtin_shader_with_config()

◆ gpu_shader_warm_builtin_shader_async()

Variable Documentation

◆ builtin_shaders