Device.VertexShader Property (Microsoft.DirectX.Direct3D)
Retrieves or sets the current vertex shader.
Definition
Visual Basic Public Property VertexShader As VertexShader C# public VertexShader VertexShader { get; set; } C++ public:
property VertexShader^ VertexShader {
VertexShader^ get();
void set(VertexShader^ value);
}JScript 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
Occurs if the method fails.