C# Class Spark.Emit.LazyEmitBlock

Inheritance: IEmitBlock
Show file Open project: spark-shading-language/spark Class Usage Examples

Public Methods

Method Description
AppendComment ( Span span ) : void
AppendComment ( string comment ) : void
ApplyTo ( IEmitBlock block ) : void
Array ( IEmitType elementType, IEmitVal elements ) : IEmitVal
BuiltinApp ( IEmitType type, string template, IEmitVal args ) : IEmitVal
CallCOM ( IEmitVal obj, string interfaceName, string methodName ) : void
CastRawPointer ( IEmitVal val, IEmitType type ) : IEmitVal
Enum32 ( string type, string name, UInt32 val ) : IEmitVal
GetArrow ( IEmitVal obj, IEmitField field ) : IEmitVal
GetBuiltinField ( IEmitVal obj, string fieldName, IEmitType fieldType ) : IEmitVal
InsertBlock ( ) : IEmitBlock
LazyEmitBlock ( IEmitTarget target, IEmitMethod method ) : System
LiteralBool ( bool val ) : IEmitVal
LiteralData ( byte data ) : IEmitVal
LiteralF32 ( float val ) : IEmitVal
LiteralS32 ( int val ) : IEmitVal
LiteralString ( string val ) : IEmitVal
LiteralU32 ( uint val ) : IEmitVal
Local ( string name, IEmitType type ) : IEmitVal
SetArrow ( IEmitVal obj, IEmitField field, IEmitVal val ) : void
StoreRaw ( IEmitVal basePointer, uint offset, IEmitVal val ) : void
Struct ( string structTypeName ) : IEmitVal
Temp ( string name, IEmitVal val ) : IEmitVal

Private Methods

Method Description
Defer ( IEmitVal>.Func action ) : IEmitVal
Defer ( Action action ) : void
Un ( IEmitType type ) : IEmitType
Un ( IEmitVal val ) : IEmitVal
Un ( IEnumerable vals ) : IEmitVal[]

Method Details

AppendComment() public method

public AppendComment ( Span span ) : void
span Span
return void

AppendComment() public method

public AppendComment ( string comment ) : void
comment string
return void

ApplyTo() public method

public ApplyTo ( IEmitBlock block ) : void
block IEmitBlock
return void

Array() public method

public Array ( IEmitType elementType, IEmitVal elements ) : IEmitVal
elementType IEmitType
elements IEmitVal
return IEmitVal

BuiltinApp() public method

public BuiltinApp ( IEmitType type, string template, IEmitVal args ) : IEmitVal
type IEmitType
template string
args IEmitVal
return IEmitVal

CallCOM() public method

public CallCOM ( IEmitVal obj, string interfaceName, string methodName ) : void
obj IEmitVal
interfaceName string
methodName string
return void

CastRawPointer() public method

public CastRawPointer ( IEmitVal val, IEmitType type ) : IEmitVal
val IEmitVal
type IEmitType
return IEmitVal

Enum32() public method

public Enum32 ( string type, string name, UInt32 val ) : IEmitVal
type string
name string
val System.UInt32
return IEmitVal

GetArrow() public method

public GetArrow ( IEmitVal obj, IEmitField field ) : IEmitVal
obj IEmitVal
field IEmitField
return IEmitVal

GetBuiltinField() public method

public GetBuiltinField ( IEmitVal obj, string fieldName, IEmitType fieldType ) : IEmitVal
obj IEmitVal
fieldName string
fieldType IEmitType
return IEmitVal

InsertBlock() public method

public InsertBlock ( ) : IEmitBlock
return IEmitBlock

LazyEmitBlock() public method

public LazyEmitBlock ( IEmitTarget target, IEmitMethod method ) : System
target IEmitTarget
method IEmitMethod
return System

LiteralBool() public method

public LiteralBool ( bool val ) : IEmitVal
val bool
return IEmitVal

LiteralData() public method

public LiteralData ( byte data ) : IEmitVal
data byte
return IEmitVal

LiteralF32() public method

public LiteralF32 ( float val ) : IEmitVal
val float
return IEmitVal

LiteralS32() public method

public LiteralS32 ( int val ) : IEmitVal
val int
return IEmitVal

LiteralString() public method

public LiteralString ( string val ) : IEmitVal
val string
return IEmitVal

LiteralU32() public method

public LiteralU32 ( uint val ) : IEmitVal
val uint
return IEmitVal

Local() public method

public Local ( string name, IEmitType type ) : IEmitVal
name string
type IEmitType
return IEmitVal

SetArrow() public method

public SetArrow ( IEmitVal obj, IEmitField field, IEmitVal val ) : void
obj IEmitVal
field IEmitField
val IEmitVal
return void

StoreRaw() public method

public StoreRaw ( IEmitVal basePointer, uint offset, IEmitVal val ) : void
basePointer IEmitVal
offset uint
val IEmitVal
return void

Struct() public method

public Struct ( string structTypeName ) : IEmitVal
structTypeName string
return IEmitVal

Temp() public method

public Temp ( string name, IEmitVal val ) : IEmitVal
name string
val IEmitVal
return IEmitVal