Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.h
| Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | typedef struct DRWCullingState { | ||||
| * Not ideal for planes. Could be extended. */ | * Not ideal for planes. Could be extended. */ | ||||
| BoundSphere bsphere; | BoundSphere bsphere; | ||||
| /* Grrr only used by EEVEE. */ | /* Grrr only used by EEVEE. */ | ||||
| void *user_data; | void *user_data; | ||||
| } DRWCullingState; | } DRWCullingState; | ||||
| /* Minimum max UBO size is 64KiB. We take the largest | /* Minimum max UBO size is 64KiB. We take the largest | ||||
| * UBO struct and alloc the max number. | * UBO struct and alloc the max number. | ||||
| * ((1 << 16) / sizeof(DRWObjectMatrix)) = 512 | * `((1 << 16) / sizeof(DRWObjectMatrix)) = 512` | ||||
| * Keep in sync with common_view_lib.glsl */ | * Keep in sync with `common_view_lib.glsl`. */ | ||||
| #define DRW_RESOURCE_CHUNK_LEN 512 | #define DRW_RESOURCE_CHUNK_LEN 512 | ||||
| /** | /** | ||||
| * Identifier used to sort similar drawcalls together. | * Identifier used to sort similar drawcalls together. | ||||
| * Also used to reference elements inside memory blocks. | * Also used to reference elements inside memory blocks. | ||||
| * | * | ||||
| * From MSB to LSB | * From MSB to LSB | ||||
| * 1 bit for negative scale. | * 1 bit for negative scale. | ||||
| ▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines | |||||