GraphicsDevice.SoftwareVertexProcessing Property
Gets or sets the vertex processing mode.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public bool SoftwareVertexProcessing { get; set; }
Property Value
true for software vertex processing; false for hardware vertex processing.
Remarks
The following restrictions apply when changing modes.
- If a GraphicsDevice is created with CreateOptions.SoftwareVertexProcessing, vertex processing is done in software and cannot be changed.
- If a GraphicsDevice is created with CreateOptions.HardwareVertexProcessing, vertex processing is done in hardware and cannot be changed.
- If a GraphicsDevice is created with CreateOptions.MixedVertexProcessing, vertex processing is done in hardware by default, and can be switched between software and hardware. An application can create a mixed-mode GraphicsDevice to use both software and hardware vertex processing. Use this property to switch between the two vertex processing modes.
See Also
Reference
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista