nn::gd::CTR::Resource::Helper::ConvertCompressedTextureResourceToNativeFormat Member Functionstatic nnResult ConvertCompressedTextureResourceToNativeFormat( CompressedResourceFormat format, u32 width, u32 height, u8 * dataSrc, u8 * dataDst, NativeResourceFormat * pnativeFormat = NULL );
| Name | Description | |
|---|---|---|
| in | format | Specifies the compressed pixel format of dataSrc. You can only specify ResourceFORMAT_ETC1_RGB8. |
| in | width | Specifies the data width. |
| in | height | Specifies the data height. |
| in | dataSrc | Specifies the address of the source data for the conversion. |
| in | dataDst | Specifies the destination address for the converted data. |
| in | pnativeFormat | Specifies the address that will store the native format value received after conversion. This will not be used if NULL is specified. |
| Value | Description |
|---|---|
| ResultSuccess | Process was successful. |
| ResultNullParameter | NULL was specified for either dataSrc or dataDst. |
| ResultInvalidTextureResolution | Either 0 was specified for width or height, or the size is not a multiple of 8. This result will also be returned if format is invalid. |
| ResultOutOfMemory | Could not obtain memory. |
| ResultInvalidTextureFormat | Invalid pixel format. |
Converts compressed texture data into a compressed native format.
CONFIDENTIAL