Texture(TextureManagerLocks* pmanagerLocks, id<MTLTexture> texture, ImageSize size, ImageBase* pimage); Texture(TextureManagerLocks* pmanagerLocks, const TextureFormat* pformat, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage);
Texture constructor.
Parameters |
Description |
TextureManagerLocks* pmanagerLocks |
Pointer to the TextureManagerLocks for proper synchronization of Texture objects on different threads. |
id<MTLTexture> texture |
A platform specific texture handle. |
ImageSize size |
The size of the updateable texture in pixels. |
ImageBase* pimage |
Pointer to the image pixel data and size information used to create a texture. |
const TextureFormat* pformat |
The texture format. |
unsigned mipLevels |
The number of mipmap levels to create, with 0 indicating no mipmaps. A value of 1 would create a full-size level 0 texture with one additional half-size mipmap. |
unsigned use |
The texture capabilities passed to the renderer. |