Table of Contents

Class IrVarDecl

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

Represents a variable declaration.

public class IrVarDecl : IrStatement
Inheritance
IrVarDecl
Inherited Members

Constructors

IrVarDecl(string, IrType, IrExpression?)

Initializes a new instance of IrVarDecl with the specified name, type, and optional initializer.

public IrVarDecl(string name, IrType type, IrExpression? initializer = null)

Parameters

name string
type IrType
initializer IrExpression

Properties

Initializer

Gets the optional initializer expression.

public IrExpression? Initializer { get; }

Property Value

IrExpression

Kind

Gets the IR node kind for this statement.

public override IrNodeKind Kind { get; }

Property Value

IrNodeKind

Name

Gets the variable name.

public string Name { get; }

Property Value

string

Type

Gets the variable type.

public IrType Type { get; }

Property Value

IrType