SystemInfo.graphicsShaderLevel Manual     Reference     Scripting  
Scripting > Runtime Classes > SystemInfo

static var graphicsShaderLevel : int


Graphics device shader capability level (Read Only).

This is approximate "shader capability" level of the graphics device, expressed in DirectX shader model terms. Possible values are:

30Shader Model 3.0
20Shader Model 2.x
10Shader Model 1.x
7Fixed function, roughly DirectX 7 features (cubemaps, dot3)
6Fixed function, roughly DirectX 6 features (basic multitexture)
5Fixed function, roughly DirectX 5 features

// Check for shader model 2.0 or better support
if (SystemInfo.graphicsShaderLevel >= 20) {
print ("Woohoo, decent shaders supported!");