On Sun, May 22, 2011 at 3:10 AM, Stefan Dösinger <stefandoesin...@gmx.at> wrote:
> On Sunday 22 May 2011 06:57:30 Dylan Smith wrote:
>> 4 bytes of padding are at the end of DDSURFACEDESC when compiling for
>> x64, because it contains a pointer field followed by an odd number
>> of DWORD fields.
> Does DDSURFACEDESC have the same padding when using the microsoft headers and
> msvc?
>
I tried and got the same results for x64:
offsetof(DDSURFACEDESC, ddsCaps) = 112
offsetof(DDSURFACEDESC, ddsCaps) + sizeof(DDSCAPS) = 116
sizeof(DDSURFACEDESC) = 120


Reply via email to