Device.VertexShader Property |
Language: |
Retrieves or sets the current vertex shader.
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);
Microsoft.DirectX.Direct3D.VertexShader
This property is read/write.
A VertexShader object that represents the device's current vertex shader or a vertex shader object to set.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center