Microsoft DirectX 9.0 SDK Update (October 2004)

Device.VertexShader Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the current vertex shader.

Definition

Visual Basic .NET Public Property VertexShader As VertexShader
C# public VertexShader VertexShader { get; set; }
Managed C++ public: __property VertexShader* get_VertexShader();
public: __property void set_VertexShader(VertexShader*);
JScript .NET public function get VertexShader() : VertexShader
public function set VertexShader(VertexShader);

Property Value

Microsoft.DirectX.Direct3D.VertexShader . A VertexShader object that represents the device's current vertex shader or a vertex shader object to set.

This property is read/write. 

Remarks

To set a fixed-function vertex shader (after having set a programmable vertex shader), set this property to null to release the programmable shader, and then set the Device.VertexFormat property with the fixed-function vertex format.

Exceptions
InvalidCallException Occurs if the method fails.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center