nn::gd::CTR::Resource::Helper Class

Syntax

class Helper

Description

Utility function for converting the format of texture resources.

Member Functions

S ConvertTextureResourceToNativeFormat Converts the texture data into a native format.
S GenerateMipMapsCPU This helper function generates mipmaps using the CPU. This function is used the same way as the MemoryGenerateMipMaps function. However, the MemoryGenerateMipMaps function executes the mipmap generation request command using the GPU, but the ResourceHelper::GenerateMipMapsCPU function performs mipmap calculations on the CPU. The drawback is that the Resource::Helper::GenerateMipMapsCPU function is slower than the MemoryGenerateMipMaps function.If the 3D command or data transfer command to be executed will change the source data, the current command buffer execution must finish before the ResourceHelper::GenerateMipMapsCPU function is executed. The advantage is that for the Memory::GenerateMipMaps function, the resolution of the generated mipmap must be 32 or better. However, for the ResourceHelper::GenerateMipMapsCPU function, the minimum generated mipmap resolution is 8. The memory layout of the data source is LAYOUT_BLOCK_8 and the format of the data source is native format. The formats that can be used are:
S ConvertCompressedTextureResourceToNativeFormat Converts compressed texture data into a compressed native format.

Revision History

2011/02/15
Initial version.

CONFIDENTIAL