Version: 2020.2

BuiltinShaderDefine.UNITY_HARDWARE_TIER3

切换到手册

描述

在为 GraphicsTier.Tier3 编译着色器时,设置 UNITY_HARDWARE_TIER3。

A Shader only has per-tier variants if you use #pragma hardware_tier_variants or if the TierSettings for the current platform are different. This is because the tier settings impact the defines that Unity passes to the shader compiler. You can only set a GraphicsTier in the Built-in Render Pipeline.