nn::gd::CTR::Memory::CopyTexture2DResourceLinearToBlock Member Function

Syntax

static nnResult CopyTexture2DResourceLinearToBlock(
     const Texture2DResource * source,
     s32 srcMipLevelIndex,
     u32 srcOffestY,
     s32 srcCountRow,
     const Texture2DResource * dest,
     s32 dstMipLevelIndex,
     u32 dstOffestY
);
static nnResult CopyTexture2DResourceLinearToBlock(
     u8 * srcAddr,
     u32 width,
     u32 height,
     const Texture2DResource * dest,
     s32 dstMipLevelIndex,
     u32 dstOffestY
);

List of Overloaded Member Functions

CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 ) Adds a command to the current command list for converting the source Texture2DResource resource from a linear image to a block image and transferring it to the specified Texture2DResource.
CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 ) Adds a command to the current command list for converting the image at the specified address from a linear image to a block image and transferring it to the destination Texture2DResource.

Description of CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 )

Pixel formats that can be specified for the source and destination:

NATIVE_FORMAT_RGBA_8888
NATIVE_FORMAT_RGB_888
NATIVE_FORMAT_RGBA_4444
NATIVE_FORMAT_RGBA_5551
NATIVE_FORMAT_RGB_565

The transfer source memory layout must be either LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. The transfer destination memory layout must be LAYOUT_LINEAR. The data transferred is automatically clipped when the source memory region (including srcMipLevelIndex and srcOffestY) is bigger than the destination region (including downScalingMode). An error occurs if the source region is smaller than the destination region. When converting the pixel format, the source pixel size must be the same as or smaller than the destination pixel size. In other words, conversions that increase the pixel size are not possible. This process calls the nngxAddB2LTransferCommand function.

This function is added to the command list. See the Programming Guide for details.

Description of CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )

Pixel formats that can be specified for the destination:

NATIVE_FORMAT_RGBA_8888
NATIVE_FORMAT_RGB_888
NATIVE_FORMAT_RGBA_4444
NATIVE_FORMAT_RGBA_5551
NATIVE_FORMAT_RGB_565

The transfer source memory layout must be either LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. The transfer destination memory layout must be LAYOUT_LINEAR. The data transferred is automatically clipped when the source memory region (including srcMipLevelIndex and srcOffestY) is bigger than the destination region (including downScalingMode). An error occurs if the source region is smaller than the destination region. When converting the pixel format, the source pixel size must be the same as or smaller than the destination pixel size. In other words, conversions that increase the pixel size are not possible. This process calls the nngxAddB2LTransferCommand function.

This function is added to the command list. See the Programming Guide for details.


CONFIDENTIAL