Experimental: this API is experimental and might be changed or removed in the future.

GraphicsStateCollection.AddGraphicsStateForVariant

Declaration

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

Parameters

shader Shader used in associated variant.
passId PassIdentifier used in associated variant.
keywords Array of keywords used in associated variant.
setup GraphicsState to add.

Returns

bool Returns true if the graphics state was added, false otherwise.

Description

Adds a new graphics state associated with a shader variant.


Did you find this page useful? Please give it a rating: