Method IsShaderVariantValid
IsShaderVariantValid(ShaderKeywordSet, bool)
Returns true if the given set of keywords is valid for HDR output.
Declaration
public static bool IsShaderVariantValid(ShaderKeywordSet shaderKeywordSet, bool isHDREnabled)
Parameters
| Type | Name | Description |
|---|---|---|
| ShaderKeywordSet | shaderKeywordSet | Shader keywords combination that represents a shader variant. |
| bool | isHDREnabled | Whether HDR output shader variants are required. |
Returns
| Type | Description |
|---|---|
| bool | True if the shader variant is valid and should not be stripped. |