static size_t GetMemorySize(
ResMaterial resource,
s32 bufferCount,
bit32 bufferOption,
size_t alignment = os::IAllocator::DEFAULT_ALIGNMENT
);
| 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. |
Gets the memory size required at time of creation.
CONFIDENTIAL