Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies that all contents of this texture are present and correct.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
protected void Validate (
bool facesMustHaveSameMipCount
)
Parameters
- facesMustHaveSameMipCount
Result of the validation.
Remarks
Validation is based on the following rules.
- One image face must be present.
- The mipmap chain for each face contains at least one bitmap.
- All bitmaps share the same type.
- Each face is the same size.
- Each face contains the same number of mipmaps.
- Each mipmap must be half the size of the previous. If the root bitmap is not square, the smaller axis is rounded up to 1 for the last few mipmaps before both dimensions reach zero.
Derived validation methods could add more validation rules. For example, cube maps must be square.
Exceptions
Exception type | Condition |
---|---|
InvalidContentException | The texture is not a valid one. |
See Also
Reference
TextureContent Class
TextureContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista