RemoveGraphicsStatesForVariant
Remove all associated graphics states from an input shader variant.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
RemoveGraphicsStatesForVariant(Shader, PassIdentifier, LocalKeyword[])
Remove all associated graphics states from an input shader variant.
public bool RemoveGraphicsStatesForVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)
Parameters
Shader used in the variant.
PassIdentifier used in the variant.
LocalKeyword array of keywords used in the variant.
Returns
Type | Description |
|---|---|
| bool | True if successfully removed, false otherwise. |
Remarks
Additional Resources: GraphicsStateCollection.RemoveVariant, GraphicsStateCollection.GetGraphicsStatesForVariant.
RemoveGraphicsStatesForVariant(ShaderVariant)
Remove all associated graphics states from an input shader variant.
public bool RemoveGraphicsStatesForVariant(GraphicsStateCollection.ShaderVariant variant)
Parameters
The input shader variant.
Returns
Type | Description |
|---|---|
| bool | True if successfully removed, false otherwise. |
Remarks
Additional Resources: GraphicsStateCollection.RemoveVariant, GraphicsStateCollection.GetGraphicsStatesForVariant.