C# Class EffectEditor.EffectComponents.HLSLInformation.HlslTypeDefinition

Defines an hlsl type, making it easy to edit
Show file Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
IsArray bool
IsMatrix bool
IsVector bool
MatrixColumns int
Size int
Type HlslType

Public Methods

Method Description
CreateArray ( HlslType type, int size ) : HlslTypeDefinition
CreateMatrix ( HlslType type, int rows, int columns ) : HlslTypeDefinition
CreateVector ( HlslType type, int size ) : HlslTypeDefinition
HlslTypeDefinition ( HlslType type ) : System
SetArray ( int size ) : void
SetMatrix ( int rows, int columns ) : void
SetVector ( int size ) : void
ToString ( ) : string

Generates a string representing this type

Method Details

CreateArray() static public method

static public CreateArray ( HlslType type, int size ) : HlslTypeDefinition
type HlslType
size int
return HlslTypeDefinition

CreateMatrix() static public method

static public CreateMatrix ( HlslType type, int rows, int columns ) : HlslTypeDefinition
type HlslType
rows int
columns int
return HlslTypeDefinition

CreateVector() static public method

static public CreateVector ( HlslType type, int size ) : HlslTypeDefinition
type HlslType
size int
return HlslTypeDefinition

HlslTypeDefinition() public method

public HlslTypeDefinition ( HlslType type ) : System
type HlslType
return System

SetArray() public method

public SetArray ( int size ) : void
size int
return void

SetMatrix() public method

public SetMatrix ( int rows, int columns ) : void
rows int
columns int
return void

SetVector() public method

public SetVector ( int size ) : void
size int
return void

ToString() public method

Generates a string representing this type
public ToString ( ) : string
return string

Property Details

IsArray public property

public bool IsArray
return bool

IsMatrix public property

public bool IsMatrix
return bool

IsVector public property

public bool IsVector
return bool

MatrixColumns public property

public int MatrixColumns
return int

Size public property

public int Size
return int

Type public property

public HlslType Type
return HlslType