SystemInfo.graphicsShaderLevel
static var graphicsShaderLevel: int;
static int graphicsShaderLevel;
static graphicsShaderLevel as int
Description

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:

50 Shader Model 5.0 (DX11.0) 41 Shader Model 4.1 (DX10.1) 40 Shader Model 4.0 (DX10.0) 30 Shader Model 3.0 20 Shader Model 2.x

See Also: SystemInfo.graphicsPixelFillrate.
	// Check for shader model 3.0 or better support

if (SystemInfo.graphicsShaderLevel >= 30) print ("Woohoo, decent shaders supported!");
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Example() {
        if (SystemInfo.graphicsShaderLevel >= 30)
            print("Woohoo, decent shaders supported!");
        
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Example() as void:
		if SystemInfo.graphicsShaderLevel >= 30:
			print('Woohoo, decent shaders supported!')