nw::gfx::SceneBuilder::GetDeviceMemorySize Member Function

Syntax

size_t GetDeviceMemorySize(
     size_t alignment = os::IAllocator::DEFAULT_ALIGNMENT
) const;

Arguments

Name Description
in alignment Alignment used in calculation. Must be a power of two.

Return Values

Description

Gets the device memory size required at time of creation.

Returns the device memory size required when calling CreateObject.

Memory size varies depending on SceneBuilder configuration. Call this function after completing all configuration.


CONFIDENTIAL