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

GraphicsStateCollection.ContainsVariant

Declaration

public bool ContainsVariant(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 variant exists in collection, false otherwise.

Description

Check if variant exists in collection.


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