Add kTextureRowPitchAlignment and Align helper

This commit is contained in:
Austin Eng
2017-07-14 10:58:50 -04:00
committed by Austin Eng
parent 8867e5d8df
commit 98b781527f
3 changed files with 8 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ bool IsPowerOfTwo(size_t n);
bool IsAligned(const void* ptr, size_t alignment);
void* AlignVoidPtr(void* ptr, size_t alignment);
uint32_t Align(uint32_t value, size_t alignment);
template<typename T>
T* AlignPtr(T* ptr, size_t alignment) {