Blender V4.5
gpu_shader_builtin.cc File Reference
#include "BLI_utildefines.h"
#include "GPU_shader.hh"
#include "gpu_shader_private.hh"

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}}

Function Documentation

◆ builtin_shader_create_info_name()

const char * builtin_shader_create_info_name ( eGPUBuiltinShader shader)
static

Definition at line 18 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_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_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_STRIPS, GPU_SHADER_SEQUENCER_THUMBS, GPU_SHADER_SIMPLE_LIGHTING, and GPU_SHADER_TEXT.

Referenced by GPU_shader_get_builtin_shader_with_config().

◆ builtin_shader_create_info_name_clipped()

◆ GPU_shader_free_builtin_shaders()

void GPU_shader_free_builtin_shaders ( )

◆ GPU_shader_get_builtin_shader()

◆ GPU_shader_get_builtin_shader_with_config()

Variable Documentation

◆ builtin_shaders

GPUShader* builtin_shaders[GPU_SHADER_CFG_LEN][GPU_SHADER_BUILTIN_LEN] = {{nullptr}}
static