diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-26 14:28:26 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-26 14:28:26 +0300 |
commit | 9dea69149ab54e59c8c3e2d341d0fc73c7a99527 (patch) | |
tree | 1e24ce22078c185ad209b9c3ca1352a9382b8747 /source/blender/draw/intern/DRW_render.h | |
parent | b6cf4a715bf0031d429c81c1c9a7210dc1c9388a (diff) |
DRW: New function to retry stencil_mask value
This function is a workaround to use the stencil in grease pencil and reduce the number of clears.
Reviewed by @fclem.
Note: This function will be removed when draw manager supports stencil clearing by group.
Diffstat (limited to 'source/blender/draw/intern/DRW_render.h')
-rw-r--r-- | source/blender/draw/intern/DRW_render.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/DRW_render.h b/source/blender/draw/intern/DRW_render.h index aae1ad42860..392362e73c5 100644 --- a/source/blender/draw/intern/DRW_render.h +++ b/source/blender/draw/intern/DRW_render.h @@ -531,7 +531,11 @@ void DRW_shgroup_uniform_float_copy(DRWShadingGroup *shgroup, const char *name, void DRW_shgroup_uniform_vec2_copy(DRWShadingGroup *shgroup, const char *name, const float *value); bool DRW_shgroup_is_empty(DRWShadingGroup *shgroup); + +/* TODO: workaround functions waiting for the clearing operation to be available inside the + * shgroups. */ DRWShadingGroup *DRW_shgroup_get_next(DRWShadingGroup *shgroup); +uint DRW_shgroup_stencil_mask_get(DRWShadingGroup *shgroup); /* Passes */ DRWPass *DRW_pass_create(const char *name, DRWState state); |