nn::gd::CTR::Memory::CopyTexture2DResourceBlockToLinear Member Functionstatic nnResult CopyTexture2DResourceBlockToLinear( const Texture2DResource * source, s32 srcMipLevelIndex, u32 srcOffsetY, s32 srcCountRow, const Texture2DResource * dest, s32 dstMipLevelIndex, u32 dstOffestY, DownScalingMode downScalingMode, gdBool yFlip ); static nnResult CopyTexture2DResourceBlockToLinear( const Texture2DResource * source, s32 srcMipLevelIndex, u32 srcOffsetY, u8 * dstAddr, u32 dstWidth, u32 dstHeight, u32 dstFormat, DownScalingMode downScalingMode, gdBool yFlip );
CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool)
|
Adds a command for converting the source Texture2DResource resource from a block image to a linear image and transferring it to the destination Texture2DResource. |
CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool)
|
Adds a command for converting the source Texture2DResource resource from a block image to a linear image and transferring it to the specified address. |
CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool)The following transfer source and destination pixel formats can be specified:NATIVE_FORMAT_RGBA_8888 NATIVE_FORMAT_RGB_888 NATIVE_FORMAT_RGBA_4444 NATIVE_FORMAT_RGBA_5551 NATIVE_FORMAT_RGB_565
The memory layout of the transfer source must be LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. The transfer destination memory layout must be LAYOUT_LINEAR. The transferred data is automatically clipped if the source memory region (including srcMipLevelIndex, srcOffsetY and srcCountRow) is bigger than the destination region (including srcMipLevelIndex, srcOffsetY and srcCountRow). 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 adds commands to the command list. For more information, see the programming manual.
CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool)The following transfer source and destination pixel formats can be specified:NATIVE_FORMAT_RGBA_8888 NATIVE_FORMAT_RGB_888 NATIVE_FORMAT_RGBA_4444 NATIVE_FORMAT_RGBA_5551 NATIVE_FORMAT_RGB_565
The memory layout of the transfer source must be LAYOUT_BLOCK_8 or LAYOUT_BLOCK_32. The transfer destination memory layout must be LAYOUT_LINEAR. The data transferred is automatically clipped if the source memory region (including srcMipLevelIndex and srcOffsetY) 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 adds commands to the command list. For more information, see the programming manual.
CONFIDENTIAL