nw::gfx::Material::GetMemorySize Member Function

Syntax

static size_t GetMemorySize(
     ResMaterial resource,
     s32 bufferCount,
     bit32 bufferOption,
     size_t alignment = os::IAllocator::DEFAULT_ALIGNMENT
);

Arguments

Name Description
in resource Resource.
in bufferCount Number of material buffers to create.
bufferOption
in alignment Alignment used in calculation. Must be a power of two.
in parent Model class serving as the material's parent.

Return Values

Description

Gets the memory size required at time of creation.


CONFIDENTIAL