文档

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