diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-10-21 14:09:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-10-24 12:21:17 +0300 |
commit | 0ee9282b5c51066dfcf5a6c7a5ebcd3dd5290673 (patch) | |
tree | 4e02590a5b3148e626e9187e8ba88313d581789c /source/blender/draw/engines/gpencil/gpencil_shader_shared.h | |
parent | b27c831e0cdcbd5e9792a8311e53ca31654a1d9f (diff) |
GPencil: Use indexed rendering instead of instances
This allows using instancing in other ways, like resources indexing.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_shader_shared.h')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_shader_shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_shader_shared.h b/source/blender/draw/engines/gpencil/gpencil_shader_shared.h index 4c621e955b9..3f0f73e7c13 100644 --- a/source/blender/draw/engines/gpencil/gpencil_shader_shared.h +++ b/source/blender/draw/engines/gpencil/gpencil_shader_shared.h @@ -41,6 +41,9 @@ enum gpLightType { GP_LIGHT_TYPE_AMBIENT = 3u, }; +#define GP_IS_STROKE_VERTEX_BIT (1 << 30) +#define GP_VERTEX_ID_SHIFT 2 + /* Avoid compiler funkiness with enum types not being strongly typed in C. */ #ifndef GPU_SHADER # define gpMaterialFlag uint |