Device.SoftwareVertexProcessing Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the vertex processing mode.

Definition

Visual Basic Public Property SoftwareVertexProcessing As Boolean
C# public bool SoftwareVertexProcessing { get; set; }
C++ public:
property bool SoftwareVertexProcessing {
        bool get();
        void set(bool value);
}
JScript public function get SoftwareVertexProcessing() : boolean
public function set SoftwareVertexProcessing(boolean);

Property Value

System.Boolean
Value that is true for software vertex processing; false for hardware vertex processing.

This property is read/write. 

Remarks

The following restrictions apply when changing modes.

  • If a device is created with CreateFlags.SoftwareVertexProcessing, vertex processing is done in software and cannot be changed.
  • If a device is created with CreateFlags.HardwareVertexProcessing, vertex processing is done in hardware and cannot be changed.
  • If a device is created with CreateFlags.MixedVertexProcessing, vertex processing is done in hardware by default, and can be switched between software and hardware. An application can create a mixed-mode device to use both software and hardware vertex processing. Use this property to switch between the two vertex processing modes.

Exceptions

InvalidCallException

Occurs if the method call is invalid. For example, a parameter might contain an invalid value.

See Also