mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Add utility integer alignment function
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
#include <QSortFilterProxyModel>
|
||||
#include "renderdoc_replay.h"
|
||||
|
||||
template <typename T>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user