ドキュメント

Unity Engine

Unity Engine

GetGraphicsStateCountForVariant

Get the number of graphics states associated with an input shader variant.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Shader used in the variant.

PassIdentifier used in the variant.

LocalKeyword array of keywords used in the variant.

Returns

Type

Description

intThe number of graphics states associated to input shader variant.

Remarks

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

intThe number of graphics states associated to input shader variant.

Remarks