<div dir="ltr"><div>I thought about that too. In the end, I don't think I can really do anything to make them more portable while also keeping compatibility with DX SDK. We are a compilers' mercy here; at least (recent) GCC targeting Windows will use MSVC-compatible bitfield layout.<br></div>Anyway, there's already some bitfield use in WinSDK headers in Wine - same concern applies there.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 12:44 GMT+03:00 Henri Verbeet <span dir="ltr"><<a href="mailto:hverbeet@gmail.com" target="_blank">hverbeet@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15 January 2016 at 09:30, Andrey Turkin <<a href="mailto:andrey.turkin@gmail.com">andrey.turkin@gmail.com</a>> wrote:<br>
> 2016-01-15 3:35 GMT+03:00 Józef Kucia <<a href="mailto:joseph.kucia@gmail.com">joseph.kucia@gmail.com</a>>:<br>
>><br>
>> It would preferably be written as "UINT Usage : 1;". This applies to<br>
>> other bit fields.<br>
><br>
><br>
> Make sense, will do<br>
><br>
</span>The main thing I'd personally be worried about would be the<br>
portability of bit fields. I think that in case of<br>
D3D11_VIDEO_PROCESSOR_COLOR_SPACE the layout ends up being the same<br>
between MSVC and gcc on x86, but I'm not sure that's something we can<br>
depend on, or if that also holds on different compilers or e.g.<br>
64-bit.<br>
</blockquote></div><br></div>