Vixen
02b45cc4
csharp
public sealed class PrimitiveTypeSymbol

A built-in scalar, vector or matrix (int, float3, mat3x4). Instances are singletons owned by BuiltInTypes, so reference equality is type identity.

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

Fields and properties (8)

  • public override string Name
  • public override SpecialType SpecialType
  • public override TypeKind TypeKind
  • public SpecialType ComponentSpecialType

    The scalar each component holds (itself, for a scalar type).

  • public int Rows
  • public int Columns
  • public int ComponentCount

    Number of components: the vector length, or rows × columns for a matrix.

  • public PrimitiveTypeSymbol ComponentType

    The scalar type of a component.

Methods (2)

  • public override string ToDisplayString()
  • public override IReadOnlyList<Symbol> GetMembers(string name)

    Vectors expose swizzles as members: v.x, v.xy, c.rgb. A one-component swizzle yields the scalar, longer ones a vector of that length. The two component sets may not be mixed.

Used by (17)

  • BinderVixen.Raven
  • BitCastTestsVixen.Raven.Tests
  • BuilderVixen.Raven
  • BuiltInTypesVixen.Raven
  • ConstantEvaluatorVixen.Raven
  • ConversionsVixen.Raven
  • ImageFormatsVixen.Raven
  • Int64TestsVixen.Raven.Tests
  • IntrinsicsVixen.Raven
  • LowererVixen.Raven
  • SampledTextureTypeSymbolVixen.Raven
  • SourceFieldSymbolVixen.Raven
  • SourceNamedTypeSymbolVixen.Raven
  • SourceValueParameterSymbolVixen.Raven
  • StageBuiltInInfoVixen.Raven
  • StorageImageTypeSymbolVixen.Raven
  • TypeSystemTestsVixen.Raven.Tests