Custom Shader Parser Example

This example shows how to create a self-installing custom shader language parser in JScript. A number of parseable file definitions (with the .bck and .pck extensions) are included to demonstrate how the parser system works, both valid and invalid.


Example Files

Location
Files
ShaderParserExample.js
AnotherBadParamPuckShader.bck
BadParamPuckShader.bck
DisorderedParamPuckShader.bck
NoRendererPuckShader.bck
ArrayCnxPuck.pck
BogusPuckShader.pck
ColorShare.pck
WellorderedParamPuckShader.pck

Running the Example

To instantiate the Puck shader definitions

Keywords

This example uses the following keywords:

JScript example, JScript, RegisterShaderLanguageParser, QueryParserSettings, Parse, ParseInfo, ShaderDef, Context, GetSource