AddGraphicsStateForVariant(Shader, PassIdentifier, LocalKeyword[], GraphicsState)
Adds a new graphics state associated with a shader variant.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
public bool AddGraphicsStateForVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords, GraphicsStateCollection.GraphicsState setup)
Parameters
Shader used in associated variant.
PassIdentifier used in associated variant.
Array of keywords used in associated variant.
GraphicsState to add.
Returns
Type | Description |
|---|---|
| bool | Returns true if the graphics state was added, false otherwise. |