Texture

Texture
Declaration
class Texture : public Render::Texture;
Description

D3D12 Texture class implementation, and may actually include several hardware textures (one for each ImageFormat plane).

Data Members
Data Member 
Description 
The number of textures. 
Pointer to an array of hardware textures (HWTextureDesc) if more than one texture is required. 
Hardware texture. 
Methods
Method 
Description 
Frees all textures, including the hardware textures. 
Applies a texture to a to a given stage for a device, starting at stageIndex and advances the index. 
Retrieves the format of the image associated with the texture. 
Retrieves the image associated with a texture. 
Returns the texture manager used to create the textures. 
Returns the format of the texture and its usage capabilities. 
GetTextureFormatMapping returns the texture mapping structure for the TextureFormat of the Texture. 
Returns the size of the texture. 
Fills in a matrix that should be used to convert pixel coordinate space to the UV coordinates used by the renderer. 
Initializes the Texture from a platform specific texture handle. 
Initializes the Texture from a platform specific texture handle. 
Determines if the texture has valid data, i.e., if it is initialized with data and can be used for rendering. 
Releases the hardware textures that are included. 
Texture constructor. 
Updates a texture region based on the specified image data. 
Synchronizes RenderTarget and Staging content. 
Synchronizes staging content. 
Structures
Structure 
Description 
Represents a hardware texture object. 
File

D3D12_Texture.h