Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_common.h
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | typedef struct GlobalsUboStorage { | ||||
| float colorGridAxisY[4]; | float colorGridAxisY[4]; | ||||
| float colorGridAxisZ[4]; | float colorGridAxisZ[4]; | ||||
| /* NOTE! Put all color before UBO_LAST_COLOR */ | /* NOTE! Put all color before UBO_LAST_COLOR */ | ||||
| /* Pack individual float at the end of the buffer to avoid alignment errors */ | /* Pack individual float at the end of the buffer to avoid alignment errors */ | ||||
| float sizeLightCenter, sizeLightCircle, sizeLightCircleShadow; | float sizeLightCenter, sizeLightCircle, sizeLightCircleShadow; | ||||
| float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot; | float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot; | ||||
| float gridDistance, gridResolution, gridSubdivisions, gridScale; | |||||
| float pad_globalsBlock; | float pad_globalsBlock; | ||||
| } GlobalsUboStorage; | } GlobalsUboStorage; | ||||
| /* Keep in sync with globalsBlock in shaders */ | /* Keep in sync with globalsBlock in shaders */ | ||||
| BLI_STATIC_ASSERT_ALIGN(GlobalsUboStorage, 16) | BLI_STATIC_ASSERT_ALIGN(GlobalsUboStorage, 16) | ||||
| void DRW_globals_update(void); | void DRW_globals_update(void); | ||||
| void DRW_globals_free(void); | void DRW_globals_free(void); | ||||
| ▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines | |||||