Handle post-vs data being padded/aligned instead of tightly packed

This commit is contained in:
baldurk committed 2016-02-07 18:47:33 +01:00
1 parent 8818de4524
commit 101d780956
2 files changed
+18 -1

No files matched your search

+5
View File
@@ -75,6 +75,11 @@ namespace renderdocui.Code
else return val;
}
public static uint AlignUp(this uint x, uint a)
{
return (x + (a - 1)) & (~(a - 1));
}
public static bool IsElevated
{
get