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:
authorCampbell Barton <ideasman42@gmail.com>2016-06-09 23:08:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-06-09 23:09:11 +0300
commitefd547f3da10a247fdcff66e74f9b98ec3abdd39 (patch)
treeef4a5d2b3fc8cc7c03eeefc00dfa87a4a0bb238e /source/blender/gpu/GPU_basic_shader.h
parent6798809c7ec8388509f541a64359b3d107e6fd3f (diff)
GPU: avoid multiple bind calls in GPU_draw_pbvh_buffers
Also add utility functions: GPU_basic_shader_bind_enable/disable so we don't have to get the previous state every time and manipulate it
Diffstat (limited to 'source/blender/gpu/GPU_basic_shader.h')
-rw-r--r--source/blender/gpu/GPU_basic_shader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_basic_shader.h b/source/blender/gpu/GPU_basic_shader.h
index 6c78aec2ec7..d9bf3d1ced3 100644
--- a/source/blender/gpu/GPU_basic_shader.h
+++ b/source/blender/gpu/GPU_basic_shader.h
@@ -76,6 +76,9 @@ void GPU_basic_shaders_init(void);
void GPU_basic_shaders_exit(void);
void GPU_basic_shader_bind(int options);
+void GPU_basic_shader_bind_enable(int options);
+void GPU_basic_shader_bind_disable(int options);
+
int GPU_basic_shader_bound_options(void);
/* Only use for small blocks of code that don't support glsl shader. */