Version: 5.6

SystemInfo.graphicsShaderLevel

매뉴얼로 전환
public static int graphicsShaderLevel ;

설명

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.

using UnityEngine;

public class ExampleClass : MonoBehaviour { void Start() { // Check for shader model 3.0 or better support if (SystemInfo.graphicsShaderLevel >= 30) print("Woohoo, decent shaders supported!"); } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961