기술 자료

Unity Engine

Unity Engine

AddGraphicsStateForVariant(Shader, PassIdentifier, LocalKeyword[], GraphicsState)

Adds a new graphics state associated with a shader variant.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public bool AddGraphicsStateForVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords, GraphicsStateCollection.GraphicsState setup)

Parameters

shader

Shader used in associated variant.

PassIdentifier used in associated variant.

Array of keywords used in associated variant.

GraphicsState to add.

Returns

Type

Description

boolReturns true if the graphics state was added, false otherwise.