nw::gfx::res::ResCubeTexture::DynamicBuilder::Create Member Function

Syntax

ResCubeTexture Create(
     os::IAllocator * allocator
);

Arguments

Name Description
in allocator Allocator for freeing memory used for resources.

Return Values

Returns a created texture.

Description

Dynamically creates a texture.

This function allocates memory from an allocator without consideration of the usual restriction on cube map textures that all faces must fit within 32MB.

This problem can be worked around by implementing an allocator that stores all allocated addresses within a 32MB boundary.


CONFIDENTIAL