Method ConvertBufferByLayout
ConvertBufferByLayout(byte*, uint, byte*, uint, Layout[], in GtfTextureInfo, bool)
Converts the specified memory from GTF to DDS or vice versa using the given layout buffer and GTF texture.
Declaration
public static void ConvertBufferByLayout(byte* gtfImage, uint gtfSize, byte* ddsImage, uint ddsSize, Layout[] layouts, in GtfTextureInfo texture, bool gtfToDds)
Parameters
| Type | Name | Description |
|---|---|---|
| byte* | gtfImage | A pointer to the GTF memory. |
| uint | gtfSize | The size of the GTF memory in bytes. |
| byte* | ddsImage | A pointer to the DDS memory. |
| uint | ddsSize | The size of the DDS memory in bytes. |
| Layout[] | layouts | The layout buffer used to facilitate conversion. |
| GtfTextureInfo | texture | The texture corresponding to the GTF memory. |
| bool | gtfToDds | Whether to convert from GTF to DDS or vice versa. |