Game development

Shader keyword combinations

Count nominal combinations from explicit Unity shader keyword pragmas.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Multiply each explicit set’s options. A single shader_feature keyword adds its implicit disabled option.

Three options in the first set and two in the second give 6 nominal combinations.

Limits

An unstripped Cartesian count, not a compiled variant or memory estimate. Built-in shorthand, repeated keywords across sets, pipeline stripping and stage sharing require separate analysis.