diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager.h')
-rw-r--r-- | source/blender/draw/intern/draw_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index 267826d2d9a..f2b941810a7 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -127,6 +127,7 @@ typedef enum { DRW_CALL_SINGLE, /* A single batch */ DRW_CALL_INSTANCES, /* Draw instances without any instancing attribs. */ DRW_CALL_GENERATE, /* Uses a callback to draw with any number of batches. */ + DRW_CALL_PROCEDURAL, /* Generate a drawcall without any Gwn_Batch. */ } DRWCallType; typedef struct DRWCall { @@ -146,6 +147,10 @@ typedef struct DRWCall { DRWCallGenerateFn *geometry_fn; void *user_data; } generate; + struct { /* type == DRW_CALL_PROCEDURAL */ + unsigned int prim_count; + Gwn_PrimType prim_type; + } procedural; }; DRWCallType type; |