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

GraphicsStateCollection.AddVariant

Declaration

public bool AddVariant(Shader shader, Rendering.PassIdentifier passId, LocalKeyword[] keywords);

Parameters

shader Shader used in the variant.
passId PassIdentifier used in the variant.
keywords Array of keywords used in the variant.

Returns

bool Returns true if the variant was added, false otherwise.

Description

Adds a new shader variant to the collection.


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