Sdílet prostřednictvím


MeshHelper.OptimizeForCache Method

Note

This method is available only when developing for Windows.

Reorders the indices and vertices of the mesh for optimal GPU cache performance.

Syntax

'Declaration
Public Shared Sub OptimizeForCache ( _
         mesh As MeshContent _
)
public static void OptimizeForCache (
         MeshContent mesh
)
public:
static void OptimizeForCache(
         MeshContent mesh
)

Parameters

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

MeshHelper Class
MeshHelper Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP