Assertion failed: AlignedOffset == TypeLayout.Size

Assertion failed: AlignedOffset == TypeLayout.Size [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/Serialization/MemoryImage.cpp] [Line: 224]
[FMyComputeShader] Calculated Size: 280, Real Size: 288
And I find this solution Using LAYOUT_FIELD micro to define your variable works for me
But I don not known how to use LAYOUT_FIELD.