IsValid
Checks whether the global shader keyword exists.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
IsValid()
Checks whether the global shader keyword exists.
public bool IsValid()
Returns
Type | Description |
|---|---|
| bool | Returns true if the global shader keyword exists. Otherwise, returns false. |
IsValid(ComputeShader)
Checks whether the shader keyword exists in the compute shader you pass in.
public bool IsValid(ComputeShader shader)
Parameters
The shader that declares the keyword.
Returns
Type | Description |
|---|---|
| bool | Returns true if the shader keyword exists. Otherwise, returns false. |
IsValid(Shader)
Checks whether the shader keyword exists in the shader you pass in.
public bool IsValid(Shader shader)
Parameters
The shader that declares the keyword.
Returns
Type | Description |
|---|---|
| bool | Returns true if the shader keyword exists. Otherwise, returns false. |