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 versions | Sub versions |
---|---|
1 | 1 |
2 | 0, sw (software), x (extended) |
3 | 0, sw (software) |
Remarks
Vertex shader versions | 1_1 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|
vs | x | x | x | x | x | x |
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
Related topics