diff --git a/qrenderdoc/Code/QRDUtils.h b/qrenderdoc/Code/QRDUtils.h index 063d60c7d..874651165 100644 --- a/qrenderdoc/Code/QRDUtils.h +++ b/qrenderdoc/Code/QRDUtils.h @@ -31,6 +31,12 @@ #include #include "renderdoc_replay.h" +template +inline T AlignUp(T x, T a) +{ + return (x + (a - 1)) & (~(a - 1)); +} + #ifndef ARRAY_COUNT #define ARRAY_COUNT(arr) (sizeof(arr) / sizeof(arr[0])) #endif