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

This commit is contained in:
baldurk
2016-02-07 18:47:33 +01:00
parent 8818de4524
commit 101d780956
2 changed files with 18 additions and 1 deletions
+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