Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This instruction specifies the shader version number and works on all shader versions.
Syntax
ps_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, 3, 4 |
2 | 0, x (extended), sw (software) |
3 | 0, sw (software) |
Remarks
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|---|---|---|
ps | x | x | x | x | x | x | x | x | x |
This instruction must be the first non-comment instruction in a pixel shader.
Hardware accelerated versions of the software (versions without _sw in the version number), can process vertices with hardware acceleration 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 pixel shader.
ps_1_1
This partial example declares a version 1_4 pixel shader.
ps_1_4
Related topics