Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetGraphicsStateCountForVariant

Get the number of graphics states associated with an input shader variant.
Read time 1 minuteLast updated 11 days ago

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