nn::gd::CTR::Resource::Helper::ConvertTextureResourceToNativeFormat Member Functionstatic nnResult ConvertTextureResourceToNativeFormat( ResourceFormat format, u32 width, u32 height, const u8 * dataSrc, u8 * dataDst, NativeResourceFormat * pnativeFormat = NULL );
| Name | Description | |
|---|---|---|
| in | format | Specifies the pixel format of dataSrc. The formats that can be specified mentioned elsewhere in this section. |
| 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 the texture data into a native format.
The following pixel formats can be specified for format:
CONFIDENTIAL