Vixen
02b45cc4
csharp
public sealed class MetadataFieldSymbol

A field, enum member or val type parameter read out of a compiled library.

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

Remarks

Every flag the binder and the lowerer branch on round-trips: IsConst and IsCompose because they decide which fields a constructor-less struct is built from and which become bindings, ResourceKind and ResourceSet because they decide where a binding lands.

ConstantValue answers with the declared value, unconditionally — where a source field distinguishes it from DeclaredValue so that reading a permutation key records a use. A library's keys are not this compilation's: the consuming shader declares its own, so there is no use to record and the two properties coincide.

Fields and properties (15)

  • public override string Name
  • public override Symbol? ContainingSymbol
  • public override TypeSymbol Type
  • public override bool IsStatic
  • public override bool IsReadOnly
  • public override bool IsConst
  • public override bool IsPermutation
  • public override bool IsValueParameter
  • public override bool IsCompose
  • public override bool IsStream
  • public override object? DeclaredValue
  • public override object? ConstantValue
  • public override ResourceKind ResourceKind
  • public override ResourceSet ResourceSet
  • public override string? SemanticName

Used by (1)

  • MetadataNamedTypeSymbolVixen.Raven