mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
include: Introduce a common macro for defining tags.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
273316a742
commit
4728cf1286
@@ -42,6 +42,10 @@
|
||||
|
||||
#define MEMBER_SIZE(t, m) sizeof(((t *)0)->m)
|
||||
|
||||
#define VKD3D_MAKE_TAG(ch0, ch1, ch2, ch3) \
|
||||
((uint32_t)(ch0) | ((uint32_t)(ch1) << 8) \
|
||||
| ((uint32_t)(ch2) << 16) | ((uint32_t)(ch3) << 24))
|
||||
|
||||
static inline size_t align(size_t addr, size_t alignment)
|
||||
{
|
||||
return (addr + (alignment - 1)) & ~(alignment - 1);
|
||||
|
Reference in New Issue
Block a user