C# Class Protogame.UnifiedShaderParserV1

显示文件 Open project: RedpointGames/Protogame Class Usage Examples

Public Methods

Method Description
Lex ( string input ) : List
Parse ( string input ) : UnifiedShaderInfo

Private Methods

Method Description
ConsumeToken ( List tokens ) : UnifiedShaderToken
ExpectToken ( UnifiedShaderToken consumeToken, UnifiedShaderTokenType type ) : void
ExpectToken ( UnifiedShaderToken consumeToken, string text ) : void
ParseConstantBuffer ( ConstantBufferInfo buffer, List tokens ) : void
ParseConstantBuffers ( UnifiedShaderInfo info, List tokens ) : void
ParseParameterList ( List variables, List tokens ) : void
ParseParameters ( UnifiedShaderInfo info, List tokens ) : void
ParsePass ( PassInfo pass, List tokens ) : void
ParseShaders ( UnifiedShaderInfo info, List tokens ) : void
ParseTechnique ( UnifiedShaderInfo info, List tokens ) : void
ParseTopLevel ( UnifiedShaderInfo info, List tokens ) : void

Method Details

Lex() public method

public Lex ( string input ) : List
input string
return List

Parse() public method

public Parse ( string input ) : UnifiedShaderInfo
input string
return UnifiedShaderInfo