Texture(TextureManagerLocks* pmanagerLocks, VkImage image, VkFormat format, const ImageSize& size, VkDeviceMemory memory, ImageBase* imageBase); 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. |
VkImage image |
_nt_ |
VkFormat format |
_nt_ |
const ImageSize& size |
The size of the updateable texture in pixels. |
VkDeviceMemory memory |
The device memory itself. |
ImageBase* imageBase |
_nt_ |
const TextureFormat* pformat |
A platform specific texture handle. |
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. |
ImageBase* pimage |
Pointer to the image pixel data and size information used to create a texture. |