![]() |
![]() |
![]() |
Device.VertexShader Property |
Language: |
Retrieves or sets the current vertex shader.
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);
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.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center