diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 07:07:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 07:09:48 +0300 |
commit | 6a03199b50e02d57a50eb24441ef7be0b7e965ac (patch) | |
tree | a5e5374cb81742d2c2df05ecf315afaafcaf3d0e /source/blender/makesdna/DNA_gpu_types.h | |
parent | ea69d9858058e027a8b49d0cf313c8d4abb777a4 (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_gpu_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpu_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_gpu_types.h b/source/blender/makesdna/DNA_gpu_types.h index cecb07e79cf..da5abf0a0eb 100644 --- a/source/blender/makesdna/DNA_gpu_types.h +++ b/source/blender/makesdna/DNA_gpu_types.h @@ -45,7 +45,7 @@ typedef struct GPUSSAOSettings { float attenuation; /** Ray samples, we use presets here for easy control instead of. */ int samples; - int pad; + char _pad[4]; } GPUSSAOSettings; typedef struct GPUFXSettings { @@ -53,7 +53,7 @@ typedef struct GPUFXSettings { GPUSSAOSettings *ssao; /** #eGPUFXFlags. */ char fx_flag; - char pad[7]; + char _pad[7]; } GPUFXSettings; /* shaderfx enables */ |