TextureCreationParameters Constructor
Note
This constructor is available only when developing for Windows.
Creates a new instance of TextureCreationParameters.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public TextureCreationParameters (
int width,
int height,
int depth,
int mipLevels,
SurfaceFormat format,
ResourceUsage resourceUsage,
ResourceManagementMode resourceManagementMode,
Color colorKey,
FilterOptions filter,
FilterOptions mipFilter
)
Parameters
- width
Width of the texture. - height
Height of the texture. - depth
Depth of the texture. - mipLevels
Number of mip levels in the texture. - format
The format of the texture. - resourceUsage
A set of options identifying the behaviors of this texture resource. If resourceManagementMode is ResourceManagementMode.Automatic, this value cannot be ResourceUsage.Dynamic. - resourceManagementMode
The memory pool to hold the buffers for this texture resource. If this value is ResourceManagementMode.Automatic, the runtime will recreate the resource when the graphics device is reset. If this value is ResourceManagementMode.Manual, this resource should be re-initialized when the graphics device is reset. - colorKey
The color key of the texture. - filter
A set of options controlling how the image is filtered. - mipFilter
A set of options controlling how mipmaps are filtered.
See Also
Tasks
Reference
GraphicsDeviceManager.DeviceReset Event
TextureCreationParameters Structure
TextureCreationParameters Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista