vs

This instruction specifies the shader version number. This instruction works on all shader versions.

Syntax



vs_mainVer_subVer


Input Arguments

Input arguments contain a single main version number with a single sub version number. The allowable combinations are listed in the table below.

Main versionsSub versions
11
20, sw (software), x (extended)
30, sw (software)

 

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
vsxxxxxx

 

This instruction must be the first non-comment instruction in a vertex shader.

This instruction is supported in all vertex shader versions.

Hardware accelerated versions of the software (versions without _sw in the version number), can process vertices with hardware accelearation or use software vertex processing. Software versions (versions with _sw in the version number) process vertices only with software.

Examples

This partial example declares a version 1_1 vertex shader.



vs_1_1


This partial example declares a version 2 software vertex shader.



vs_2_sw


 

 

Community Additions

ADD
Show:
© 2014 Microsoft