Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.h
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
| } DRWObjectMatrix; | } DRWObjectMatrix; | ||||
| typedef struct DRWObjectInfos { | typedef struct DRWObjectInfos { | ||||
| float orcotexfac[2][4]; | float orcotexfac[2][4]; | ||||
| float ob_color[4]; | float ob_color[4]; | ||||
| float ob_index; | float ob_index; | ||||
| float pad; /* UNUSED*/ | float pad; /* UNUSED*/ | ||||
| float ob_random; | float ob_random; | ||||
| float ob_neg_scale; | float ob_flag; /* sign is negative scaling, */ | ||||
| } DRWObjectInfos; | } DRWObjectInfos; | ||||
| BLI_STATIC_ASSERT_ALIGN(DRWObjectMatrix, 16) | BLI_STATIC_ASSERT_ALIGN(DRWObjectMatrix, 16) | ||||
| BLI_STATIC_ASSERT_ALIGN(DRWObjectInfos, 16) | BLI_STATIC_ASSERT_ALIGN(DRWObjectInfos, 16) | ||||
| typedef enum { | typedef enum { | ||||
| /* Draw Commands */ | /* Draw Commands */ | ||||
| DRW_CMD_DRAW = 0, /* Only sortable type. Must be 0. */ | DRW_CMD_DRAW = 0, /* Only sortable type. Must be 0. */ | ||||
| Show All 21 Lines | typedef struct DRWCommandDrawRange { | ||||
| uint vert_first; | uint vert_first; | ||||
| uint vert_count; | uint vert_count; | ||||
| } DRWCommandDrawRange; | } DRWCommandDrawRange; | ||||
| typedef struct DRWCommandDrawInstance { | typedef struct DRWCommandDrawInstance { | ||||
| GPUBatch *batch; | GPUBatch *batch; | ||||
| DRWResourceHandle handle; | DRWResourceHandle handle; | ||||
| uint inst_count; | uint inst_count; | ||||
| uint use_attribs; /* bool */ | |||||
| } DRWCommandDrawInstance; | } DRWCommandDrawInstance; | ||||
| typedef struct DRWCommandDrawProcedural { | typedef struct DRWCommandDrawProcedural { | ||||
| GPUBatch *batch; | GPUBatch *batch; | ||||
| DRWResourceHandle handle; | DRWResourceHandle handle; | ||||
| uint vert_count; | uint vert_count; | ||||
| } DRWCommandDrawProcedural; | } DRWCommandDrawProcedural; | ||||
| ▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines | |||||