Share via


IndexBuffer.ResourceManagementMode Property

Gets the memory management mode for this index buffer resource.

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

Syntax

public ResourceManagementMode ResourceManagementMode { get; }

Property Value

The memory management mode for this index buffer 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.

Remarks

If this value is ResourceManagementMode.Automatic, IndexBuffer.ResourceUsage cannot be ResourceUsage.Dynamic.

See Also

Tasks

How to: Load Resources

Reference

GraphicsDeviceManager.DeviceReset Event
IndexBuffer Class
IndexBuffer Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista