d3d_shaderversion
Gives the vertex and pixel shader version as a 4 digit number.
A7.78 By setting this variable to 0, shader rendering is suppressed; by setting it to -1, all effect rendering - including FFP effects - is suppressed.
Range:
0 .. 9999
Type:
var
Remarks:
- Usual 3D cards deliver 0, 1113, 1114, 2020, or 3030.
-
A7.78 On engine versions that don't support shaders, this variable is always 0.
-
For temporarily testing the effect of shaders on the frame rate, set d3d_shaderversion to 0 and check the frame rate difference.
Example:
// set a material for vertex shader 1.1 and pixel shader 1.4
if (d3d_shaderversion >= 1114) { my.material = mtl_shader; }
See also:
d3d_caps
► latest
version online