csharp
public sealed class PrimitiveTypeSymbolA 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 Namepublic override SpecialType SpecialTypepublic override TypeKind TypeKindpublic SpecialType ComponentSpecialTypeThe scalar each component holds (itself, for a scalar type).
public int Rowspublic int Columnspublic int ComponentCountNumber of components: the vector length, or rows × columns for a matrix.
public PrimitiveTypeSymbol ComponentTypeThe 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