Version: 2023.1
언어: 한국어

GraphicsAPIConstraintAttribute

class in UnityEditor.ShaderKeywordFilter

매뉴얼로 전환

설명

Enable or disable shader keyword filter attributes based on the graphics API.

You can use GraphicsAPIConstraintAttribute to enable or disable filter attributes based on the GraphicsDeviceType, so you can filter shader keywords differently on different graphics APIs.

Use ApplyRulesIfGraphicsAPIAttribute and ApplyRulesIfNotGraphicsAPIAttribute to make your code more readable.

생성자

GraphicsAPIConstraintAttributeEnable or disable shader keyword filter attributes based on the graphics API.