Tex.Copy
Tex Copy(TexType textureType, TexFormat textureFormat)
Copy the current texture into a new texture, with the option to convert it to a different format or type! This is a GPU blit operation, so the source texture does not need to be readable from the CPU. If the source texture doesn’t have mip-maps but the destination type does, they’ll be generated for you!
| TexType textureType | What type of texture should the new texture be? Image types with mip-maps will have mips generated for them if the source doesn’t have them. |
| TexFormat textureFormat | What format should the new texture be in? If None is specified, the new texture will use the same format as the source. |
| RETURNS: Tex | A new texture copied from this one, or null if the copy failed. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!