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>2022-10-21 14:09:07 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-10-24 12:21:17 +0300
commit0ee9282b5c51066dfcf5a6c7a5ebcd3dd5290673 (patch)
tree4e02590a5b3148e626e9187e8ba88313d581789c /source/blender/draw/engines/gpencil/gpencil_shader_shared.h
parentb27c831e0cdcbd5e9792a8311e53ca31654a1d9f (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.h3
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