MipmapLevelTexture
Description
Helper class for generating textures that can be used to determine the mipmap level that is sampled by the GPU.
Each mipmap level of the texture is made up of a uniform color. When the mipmap levels are sampled by the GPU, the resulting blend color can be used to indicate the mipmap level.
Public / Constructors
MipmapLevelTexture
Creates a new instance of MipmapLevelTexture.
The default color of each mipmap level is Colors.White.
Public / Methods
CreateTexture
Creates a new texture resource based on this MipmapLevelTexture object.
- RenderException
-
If a graphics subsystem error has occurred.
SetLevelColor
Specifies the uniform color for the given mipmap level.
The default mipmap level color is Colors.White.