Texture::Texture

Texture::Texture
Texture(TextureManagerLocks* pmanagerLocks, const TextureFormat* pformat, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage);
Texture(TextureManagerLocks* pmanagerLocks, ID3D12Resource* ptexture, D3D12_RESOURCE_STATES usage, ImageSize imgSize, ImageBase* pimage);
Description

Texture constructor.

Parameters
Parameters 
Description 
TextureManagerLocks* pmanagerLocks 
Pointer to the TextureManagerLocks for proper synchronization of Texture objects on different threads. 
TextureManagerLocks* pmanagerLocks 
Pointer to the TextureManagerLocks for proper synchronization of Texture objects on different threads. 
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. 
const ImageSize& size 
The size of the updateable texture in pixels. 
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. 
ImageBase* pimage 
Pointer to the image pixel data and size information used to create a texture. 
ID3D12Resource* ptexture 
Pointer to an array of 2D textures. 
D3D12_RESOURCE_STATES usage 
Usage of the resource. 
ImageSize imgSize 
The size of the updateable texture in pixels.