C# Class Xenko.Core.Shaders.Ast.TypeBase

Base type for all types.
Inheritance: Xenko.Core.Shaders.Ast.Node, IAttributes, ITypeInferencer, IQualifiers
Datei anzeigen Open project: xen2/stride Class Usage Examples

Public Properties

Property Type Description
String Xenko.Core.Shaders.Ast.ScalarType
Void Xenko.Core.Shaders.Ast.ScalarType

Public Methods

Method Description
CreateWithBaseType ( TypeBase type, Xenko.Core.Shaders.Ast.ScalarType newBaseType ) : TypeBase

Creates a type based on a new base type. If type is a matrix or vector, then the base type is changed to match the newBaseType.

Equals ( TypeBase other ) : bool

Equalses the specified other.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetBaseType ( TypeBase type ) : TypeBase
GetDimensionSize ( TypeBase typeDeclaration, int dimension ) : int
GetHashCode ( ) : int

Returns a hash code for this instance.

HasDimensions ( TypeBase typeDeclaration ) : bool
ResolveType ( ) : TypeBase

Resolves the type.

ToString ( ) : string

Returns a System.String that represents this instance.

operator ( ) : bool

Implements the operator ==.

Protected Methods

Method Description
TypeBase ( ) : System

Initializes a new instance of the TypeBase class.

TypeBase ( Xenko.Core.Shaders.Ast.Identifier name ) : System

Initializes a new instance of the TypeBase class.

TypeBase ( string name ) : System

Initializes a new instance of the TypeBase class.

Method Details

CreateWithBaseType() public static method

Creates a type based on a new base type. If type is a matrix or vector, then the base type is changed to match the newBaseType.
public static CreateWithBaseType ( TypeBase type, Xenko.Core.Shaders.Ast.ScalarType newBaseType ) : TypeBase
type TypeBase The type.
newBaseType Xenko.Core.Shaders.Ast.ScalarType New type of the base.
return TypeBase

Equals() public method

Equalses the specified other.
public Equals ( TypeBase other ) : bool
other TypeBase /// The other. ///
return bool

Equals() public method

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object /// The to compare with this instance. ///
return bool

GetBaseType() public static method

public static GetBaseType ( TypeBase type ) : TypeBase
type TypeBase
return TypeBase

GetDimensionSize() public static method

public static GetDimensionSize ( TypeBase typeDeclaration, int dimension ) : int
typeDeclaration TypeBase
dimension int
return int

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

HasDimensions() public static method

public static HasDimensions ( TypeBase typeDeclaration ) : bool
typeDeclaration TypeBase
return bool

ResolveType() public method

Resolves the type.
public ResolveType ( ) : TypeBase
return TypeBase

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

TypeBase() protected method

Initializes a new instance of the TypeBase class.
protected TypeBase ( ) : System
return System

TypeBase() protected method

Initializes a new instance of the TypeBase class.
protected TypeBase ( Xenko.Core.Shaders.Ast.Identifier name ) : System
name Xenko.Core.Shaders.Ast.Identifier /// The name. ///
return System

TypeBase() protected method

Initializes a new instance of the TypeBase class.
protected TypeBase ( string name ) : System
name string /// The name. ///
return System

operator() public static method

Implements the operator ==.
public static operator ( ) : bool
return bool

Property Details

String public_oe static_oe property

Scalar void. TODO this is not a scalar!
public static ScalarType,Xenko.Core.Shaders.Ast String
return Xenko.Core.Shaders.Ast.ScalarType

Void public_oe static_oe property

Scalar void. TODO this is not a scalar!
public static ScalarType,Xenko.Core.Shaders.Ast Void
return Xenko.Core.Shaders.Ast.ScalarType