Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_common.h
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | typedef struct GlobalsUboStorage { | ||||
| float screenVecs[2][4]; /* padded as vec4 */ | float screenVecs[2][4]; /* padded as vec4 */ | ||||
| float sizeViewport[2], sizeViewportInv[2]; /* packed as vec4 in glsl */ | float sizeViewport[2], sizeViewportInv[2]; /* packed as vec4 in glsl */ | ||||
| /* 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 sizePixel, pixelFac; | float sizePixel, pixelFac; | ||||
| float sizeObjectCenter, sizeLightCenter, sizeLightCircle, sizeLightCircleShadow; | float sizeObjectCenter, sizeLightCenter, sizeLightCircle, sizeLightCircleShadow; | ||||
| float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot; | float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot; | ||||
| float sizeChecker; | float sizeChecker; | ||||
| float sizeVertexGpencil; | |||||
| 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); | ||||
| struct DRWView *DRW_view_create_with_zoffset(const struct DRWView *parent_view, | struct DRWView *DRW_view_create_with_zoffset(const struct DRWView *parent_view, | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||