Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-27 07:07:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-27 07:09:48 +0300
commit6a03199b50e02d57a50eb24441ef7be0b7e965ac (patch)
treea5e5374cb81742d2c2df05ecf315afaafcaf3d0e /source/blender/makesdna/DNA_lightprobe_types.h
parentea69d9858058e027a8b49d0cf313c8d4abb777a4 (diff)
Cleanup: use '_pad' convention for padding in all DNA structs
Avoids mixing these in with regular variables in code-completion. Use char for pad members except for 'void *', to make size clearer. Removed/shrink a few redundant padding vars which were >= 8 bytes.
Diffstat (limited to 'source/blender/makesdna/DNA_lightprobe_types.h')
-rw-r--r--source/blender/makesdna/DNA_lightprobe_types.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_lightprobe_types.h b/source/blender/makesdna/DNA_lightprobe_types.h
index 15322374532..d9fd22c51c8 100644
--- a/source/blender/makesdna/DNA_lightprobe_types.h
+++ b/source/blender/makesdna/DNA_lightprobe_types.h
@@ -66,7 +66,7 @@ typedef struct LightProbe {
int grid_resolution_x;
int grid_resolution_y;
int grid_resolution_z;
- int pad1;
+ char _pad1[4];
/** Object to use as a parallax origin. */
struct Object *parallax_ob;
@@ -77,7 +77,7 @@ typedef struct LightProbe {
/* Runtime display data */
float distfalloff, distgridinf;
- float pad[2];
+ char _pad[8];
} LightProbe;
/* Probe->type */
@@ -119,7 +119,6 @@ typedef struct LightProbeCache {
float position[3], parallax_type;
float attenuation_fac;
float attenuation_type;
- float pad3[2];
float attenuationmat[4][4];
float parallaxmat[4][4];
} LightProbeCache;
@@ -132,8 +131,8 @@ typedef struct LightGridCache {
/** World space vector between 2 opposite cells. */
float increment_x[3], attenuation_bias;
float increment_y[3], level_bias;
- float increment_z[3], pad4;
- float visibility_bias, visibility_bleed, visibility_range, pad5;
+ float increment_z[3];
+ float visibility_bias, visibility_bleed, visibility_range;
} LightGridCache;
/* ------ Eevee Lightcache ------- */
@@ -145,7 +144,7 @@ typedef struct LightCacheTexture {
int tex_size[3];
char data_type;
char components;
- char pad[2];
+ char _pad[2];
} LightCacheTexture;
typedef struct LightCache {
@@ -157,7 +156,7 @@ typedef struct LightCache {
int mips_len;
/** Size of a visibility/reflection sample. */
int vis_res, ref_res;
- int pad[2];
+ char _pad[4][2];
/* In the future, we could create a bigger texture containing
* multiple caches (for animation) and interpolate between the
* caches overtime to another texture. */