Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_shader.h
| Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
| /* Builtin/Non-generated shaders */ | /* Builtin/Non-generated shaders */ | ||||
| typedef enum eGPUBuiltinShader { | typedef enum eGPUBuiltinShader { | ||||
| /* specialized drawing */ | /* specialized drawing */ | ||||
| GPU_SHADER_TEXT, | GPU_SHADER_TEXT, | ||||
| GPU_SHADER_KEYFRAME_SHAPE, | GPU_SHADER_KEYFRAME_SHAPE, | ||||
| GPU_SHADER_SIMPLE_LIGHTING, | GPU_SHADER_SIMPLE_LIGHTING, | ||||
| /** | /** | ||||
| * Draw an icon, leaving a semi-transparent rectangle on top of the icon. | |||||
| */ | |||||
| GPU_SHADER_ICON, | |||||
| /** | |||||
| * Take a 2D position and color for each vertex with linear interpolation in window space. | * Take a 2D position and color for each vertex with linear interpolation in window space. | ||||
| * | * | ||||
| * \param color: in vec4 | * \param color: in vec4 | ||||
| * \param pos: in vec2 | * \param pos: in vec2 | ||||
| */ | */ | ||||
| GPU_SHADER_2D_IMAGE_DESATURATE_COLOR, | GPU_SHADER_2D_IMAGE_DESATURATE_COLOR, | ||||
| GPU_SHADER_2D_IMAGE_RECT_COLOR, | GPU_SHADER_2D_IMAGE_RECT_COLOR, | ||||
| GPU_SHADER_2D_IMAGE_MULTI_RECT_COLOR, | GPU_SHADER_2D_IMAGE_MULTI_RECT_COLOR, | ||||
| ▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines | |||||