기술 자료

Unity Engine

Unity Engine

GetGraphicsStateCountForVariant

Get the number of graphics states associated with an input shader variant.
읽는 시간 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