Sdílet prostřednictvím


GraphicsDeviceCapabilities.TextureCaps.RequiresPower2 Property

Gets a value indicating whether the device only supports textures that are powers of two.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public bool RequiresPower2 { get; }

Property Value

true if the device only supports textures that are powers of two; false otherwise.

Remarks

  • If RequiresPower2 is false, all textures must have widths and heights specified as powers of two. This requirement does not apply to either cube textures or volume textures.
  • If RequiresPower2 is true, the device conditionally supports the use of 2D textures with dimensions that are not powers of two.
  • If this value is false, and RequiresPower2 is false, unconditional support is provided for 2D textures with dimensions that are not powers of two.

See Also

Reference

GraphicsDeviceCapabilities.TextureCaps Structure
GraphicsDeviceCapabilities.TextureCaps Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista