Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-23 23:29:29 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-23 23:29:45 +0300
commit34b3d6e2f88c275032cfec5aacd036cb65d20dc3 (patch)
tree591bbf8f3008fe418ac0c185fafb614a579d670b /source/blender/gpu/GPU_shader.h
parentfb7fc3be194ba324b84eaa1c538bf3f8b74c726e (diff)
UI: Optimize the area border drawing
It is was not really a bottleneck but it was triggering my OCD when 1/3rd of the drawcalls in a normal scene were basically only caused by this.
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r--source/blender/gpu/GPU_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h
index d761ffc6a6d..7cb841c421a 100644
--- a/source/blender/gpu/GPU_shader.h
+++ b/source/blender/gpu/GPU_shader.h
@@ -351,6 +351,7 @@ typedef enum GPUBuiltinShader {
GPU_SHADER_GPENCIL_STROKE,
GPU_SHADER_GPENCIL_FILL,
/* specialized for widget drawing */
+ GPU_SHADER_2D_AREA_EDGES,
GPU_SHADER_2D_WIDGET_BASE,
GPU_SHADER_2D_WIDGET_BASE_INST,
GPU_SHADER_2D_WIDGET_SHADOW,