|
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:
30 | Shader Model 3.0 |
---|---|
20 | Shader Model 2.x |
10 | Shader Model 1.x |
7 | Fixed function, roughly DirectX 7 features (cubemaps, dot3) |
6 | Fixed function, roughly DirectX 6 features (basic multitexture) |
5 | Fixed function, roughly DirectX 5 features |
See Also: SystemInfo.graphicsPixelFillrate.
// Check for shader model 2.0 or better support
if (SystemInfo.graphicsShaderLevel >= 20)
print ("Woohoo, decent shaders supported!");
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
if (SystemInfo.graphicsShaderLevel >= 20)
print("Woohoo, decent shaders supported!");
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
if SystemInfo.graphicsShaderLevel >= 20:
print('Woohoo, decent shaders supported!')