diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-14 02:11:59 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:22 +0000 |
| commit | 00219a5bdbe63aee3957de193fe640f499f01eb4 (patch) | |
| tree | 5bb5cddda4b76861fe5f0e8d2120f9b085bd2173 /Graphics/GraphicsTools | |
| parent | Direct3D11: added BindPointsD3D11 instead of TBindPoints and TBindPointsAndAc... (diff) | |
| download | DiligentCore-00219a5bdbe63aee3957de193fe640f499f01eb4.tar.gz DiligentCore-00219a5bdbe63aee3957de193fe640f499f01eb4.zip | |
Renamed Align to AlignUp
Diffstat (limited to 'Graphics/GraphicsTools')
| -rw-r--r-- | Graphics/GraphicsTools/src/BufferSuballocator.cpp | 4 | ||||
| -rw-r--r-- | Graphics/GraphicsTools/src/TextureUploaderGL.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsTools/src/BufferSuballocator.cpp b/Graphics/GraphicsTools/src/BufferSuballocator.cpp index 2c5d60cd..2913e4ed 100644 --- a/Graphics/GraphicsTools/src/BufferSuballocator.cpp +++ b/Graphics/GraphicsTools/src/BufferSuballocator.cpp @@ -176,7 +176,7 @@ public: while (!Subregion.IsValid()) { auto ExtraSize = m_ExpansionSize != 0 ? - std::max(m_ExpansionSize, Align(Size, Alignment)) : + std::max(m_ExpansionSize, AlignUp(Size, Alignment)) : m_Mgr.GetMaxSize(); m_Mgr.Extend(ExtraSize); @@ -189,7 +189,7 @@ public: NEW_RC_OBJ(m_SuballocationsAllocator, "BufferSuballocationImpl instance", BufferSuballocationImpl) ( this, - Align(static_cast<Uint32>(Subregion.UnalignedOffset), Alignment), + AlignUp(static_cast<Uint32>(Subregion.UnalignedOffset), Alignment), Size, std::move(Subregion) ) diff --git a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp index 0fabd561..de9df6db 100644 --- a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp +++ b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp @@ -66,7 +66,7 @@ public: { auto MipProps = GetMipLevelProperties(TexDesc, Mip); // Stride must be 32-bit aligned in OpenGL - auto RowStride = Align(MipProps.RowSize, Uint32{4}); + auto RowStride = AlignUp(MipProps.RowSize, Uint32{4}); m_SubresourceStrides[SubRes] = RowStride; auto MipSize = MipProps.StorageHeight * RowStride; |
