Function setMinimumAlignment

Synopsis

#include <Source/Falcor/Utils/AlignedAllocator.h>

void setMinimumAlignment(int minAlignment)

Description

Sets the minimum alignment for allocated objects. If a value of zero is provided, no additional alignment is performed.

Source

Lines 51-55 in Source/Falcor/Utils/AlignedAllocator.h.

void setMinimumAlignment(int minAlignment)
{
    assert(minAlignment == 0 || isPowerOf2(minAlignment));
    mMinAlignment = minAlignment;
}





Add Discussion as Guest

Log in to DocsForge