Version: 2022.1
public static bool HasShaderDefine (Rendering.GraphicsTier tier, Rendering.BuiltinShaderDefine defineHash);

描述

Returns true if shader define was set when compiling shaders for current GraphicsTier. Graphics Tiers are only available in the Built-in Render Pipeline.


public static bool HasShaderDefine (Rendering.BuiltinShaderDefine defineHash);

描述

Returns true if shader define was set when compiling shaders for a given GraphicsTier. Graphics Tiers are only available in the Built-in Render Pipeline.