Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract.h
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | typedef struct DRW_MeshCDMask { | ||||
| uint32_t vcol : 8; | uint32_t vcol : 8; | ||||
| uint32_t sculpt_vcol : 8; | uint32_t sculpt_vcol : 8; | ||||
| uint32_t orco : 1; | uint32_t orco : 1; | ||||
| uint32_t tan_orco : 1; | uint32_t tan_orco : 1; | ||||
| /** Edit uv layer is from the base edit mesh as | /** Edit uv layer is from the base edit mesh as | ||||
| * modifiers could remove it. (see T68857) */ | * modifiers could remove it. (see T68857) */ | ||||
| uint32_t edit_uv : 1; | uint32_t edit_uv : 1; | ||||
| } DRW_MeshCDMask; | } DRW_MeshCDMask; | ||||
| /* Keep `DRW_MeshCDMask` struct within an `uint64_t`. | |||||
| * bit-wise and atomic operations are used to compare and update the struct. | |||||
| * See `mesh_cd_layers_type_*` functions. */ | |||||
| BLI_STATIC_ASSERT(sizeof(DRW_MeshCDMask) <= sizeof(uint64_t), "DRW_MeshCDMask exceeds 64 bits") | |||||
| typedef enum eMRIterType { | typedef enum eMRIterType { | ||||
| MR_ITER_LOOPTRI = 1 << 0, | MR_ITER_LOOPTRI = 1 << 0, | ||||
| MR_ITER_POLY = 1 << 1, | MR_ITER_POLY = 1 << 1, | ||||
| MR_ITER_LEDGE = 1 << 2, | MR_ITER_LEDGE = 1 << 2, | ||||
| MR_ITER_LVERT = 1 << 3, | MR_ITER_LVERT = 1 << 3, | ||||
| } eMRIterType; | } eMRIterType; | ||||
| ▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines | |||||