Vixen
02b45cc4

EffectPermutationValue

class Core/Vixen.Shaders/EffectData.cs:89
csharp
public record class EffectPermutationValue

One permutation value, as the text that names a variant.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The type and the default ride along with the value because UsedPermutationKeys holds typed PermutationKey`1 objects, and a name alone cannot produce one. It is also why there is no separate list of used keys on EffectData: a variant's permutation values are the keys it read, and two lists that have to agree would eventually not.

Fields and properties (4)

  • public string Name

    The permutation key.

  • public string Value

    Its value, in EffectKey's normal form.

  • public ShaderValueKind Kind

    Its type — bool, int or uint, which is all Raven admits.

  • public string DefaultValue

    What the shader declared, for interning the key.

Methods (1)

  • public EffectPermutationValue(string Name = "", string Value = "", ShaderValueKind Kind = Bool, string DefaultValue = "")

    One permutation value, as the text that names a variant.

Used by (8)

  • EffectDataVixen.Shaders
  • EffectLoaderVixen.Shaders
  • TypeRegistrationVixen.Shaders
  • Vixen_Shaders_EffectDataSerializerVixen.Shaders
  • Vixen_Shaders_EffectPermutationValueSerializerVixen.Shaders
  • EffectCompilerTestsVixen.ShaderCompiler.Tests
  • EffectTranslatorVixen.ShaderCompiler
  • PermutationClosureVixen.ShaderCompiler