TextureUsage Enumeration
Specifies special usage of the texture data.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
[FlagsAttribute]
public enum TextureUsage
Members
Member name | Description | |
---|---|---|
AutoGenerateMipMap | The resource automatically generates mipmaps. Automatic generation of mipmaps is not supported for volume textures and depth stencil surfaces/textures. | |
Linear | (Xbox 360 only) Linear texture memory format. Linear formats are arranged in memory using a left-to-right and top-to-bottom layout (with pixels contiguous in memory for each row, and rows contiguous except for possible alignment padding). Use this format when doing dynamic CPU updates to textures where:
This flag is valid only for texture creation on Xbox 360. It is ignored if used elsewhere. On Xbox, most formats are created as Tiled if it is applicable. |
|
None | None. | |
Tiled | (Xbox 360 only) Tiled texture memory format. Tiled formats are arranged using a memory layout designed to maximize the cache coherency of texture fetches and balance the access workload of the memory controllers. The exact pixel arrangement of tiled formats varies based on the bit depth of the format; however, pixels that are close to one another spatially are located close to one another in memory. For example, two pixels adjacent to one another in a vertical column would be separated in memory by an entire row of pixels for a linear format, but could be separated by only a few bytes for a tiled format. The tiled texture format is usually more efficient than the linear texture format. This flag is valid only when used for texture creation on Xbox 360, and will be ignored if used elsewhere. On Xbox, most formats are created as Tiled if it is applicable. |
See Also
Reference
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune