GetGraphicsStateCountForVariant
Get the number of graphics states associated with an input shader variant.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
GetGraphicsStateCountForVariant(Shader, PassIdentifier, LocalKeyword[])
Get the number of graphics states associated with an input shader variant.
public int GetGraphicsStateCountForVariant(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 |
|---|---|
| int | The number of graphics states associated to input shader variant. |
Remarks
Additional Resources: GraphicsStateCollection.totalGraphicsStateCount, GraphicsStateCollection.GetGraphicsStatesForVariant.
GetGraphicsStateCountForVariant(ShaderVariant)
Get the number of graphics states associated with an input shader variant.
public int GetGraphicsStateCountForVariant(GraphicsStateCollection.ShaderVariant variant)
Parameters
The input shader variant.
Returns
Type | Description |
|---|---|
| int | The number of graphics states associated to input shader variant. |
Remarks
Additional Resources: GraphicsStateCollection.totalGraphicsStateCount, GraphicsStateCollection.GetGraphicsStatesForVariant.