Version: 2022.1
Graphics API support
Metal

DirectX

To set DirectX11 as your default Graphics API in the Editor or Standalone Player, go to the Player settings (menu: Edit > Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary
, then select the Player category) and navigate to the Other Settings panel. Disable the Auto Graphics API for Windows property, and choose DirectX11 from the list. For more details, see Graphics API support.

Surface Shaders

Some parts of the Surface ShaderA streamlined way of writing shaders for the Built-in Render Pipeline. More info
See in Glossary
compilation pipeline do not understand DX11-specific HLSL syntax, so if you’re using HLSL features like StructuredBuffers, RWTextures and other non-DX9 syntax, you need to wrap it into a DX11-only preprocessor macro. See documentation on Platform-specific differences for more information.

Tessellation & Geometry Shaders

Surface ShadersA program that runs on the GPU. More info
See in Glossary
have support for simple tessellation and displacement. See documentation on Surface Shader Tessellation for more information.

When manually writing Shader programs, you can use the full set of DX11 Shader model 5.0 features, including Geometry, Hull and Domain Shaders.

Tessellation and geometry shaders are only supported by a subset of graphics APIs. This is controlled by the Shader Compilation Target level.

Compute Shaders

Compute Shaders run on the graphics card and can speed up rendering. See documentation on Compute Shaders for more information.


  • 2018–06–02 Page amended
Graphics API support
Metal
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961