Table of Contents

Class IrVectorType

Namespace
Xui.GPU.IR
Assembly
Xui.Core.dll

Represents a vector type (Float2, Float3, Float4, Int2, etc.).

public class IrVectorType : IrType
Inheritance
IrVectorType
Inherited Members

Constructors

IrVectorType(IrScalarType, int)

Initializes a new instance of IrVectorType with the specified element type and dimension.

public IrVectorType(IrScalarType elementType, int dimension)

Parameters

elementType IrScalarType
dimension int

Properties

Dimension

Gets the number of components (2-4).

public int Dimension { get; }

Property Value

int

ElementType

Gets the scalar element type of the vector.

public IrScalarType ElementType { get; }

Property Value

IrScalarType

Kind

Gets the IR node kind for this type.

public override IrNodeKind Kind { get; }

Property Value

IrNodeKind

Name

Gets the display name of this vector type.

public override string Name { get; }

Property Value

string