Vixen
02b45cc4
csharp
public record class LibraryIrTypeReference

A type in the lowered IR.

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

Remarks

Shares IrTypeKind with the IR itself rather than restating it, because the IR's type set is already the closed one every target can represent — a second enum would only be able to drift from it.

Fields and properties (11)

  • public IrTypeKind Kind
  • public IrTypeKind Component

    The scalar each lane holds, for a vector or a matrix.

  • public int Size

    Lane count of a vector.

  • public int Rows
  • public int Columns
  • public int? Length

    Array length, absent for an unsized array.

  • public LibraryIrTypeReference? Element

    Element type of an array.

  • public string? Struct

    Name of the struct, for Struct.

  • public IrTextureDimension Dimension
  • public LibraryIrTypeReference? Sampled

    What a sample of a texture, or a load of a storage image, returns.

  • public string? Format

    The texel format, for StorageImage.

Used by (6)

  • LibraryIrDecoderVixen.Raven
  • LibraryIrEncoderVixen.Raven
  • LibraryIrFieldVixen.Raven
  • LibraryIrFunctionVixen.Raven
  • LibraryIrValueVixen.Raven
  • LibraryIrVariableVixen.Raven