C# Class Vector.Gpu.ShaderLibrary

Vector Shader Builder. A utility to load Shader source code from a fragmented XML document. Shader source code can be compiled into working programs. See Specification for Format.
Exibir arquivo Open project: sinclairzx81/vector-cs Class Usage Examples

Public Methods

Method Description
Load ( string filename ) : ShaderLibrary
Parse ( string xml ) : ShaderLibrary
ShaderLibrary ( ) : System

Private Methods

Method Description
read_fragment_shader ( FragmentShader fragmentShader, System.Xml.Linq.XElement element ) : void
read_geometry_shader ( GeometryShader geometryShader, System.Xml.Linq.XElement element ) : void
read_include ( Include include, System.Xml.Linq.XElement element ) : void
read_library ( ShaderLibrary effect, System.Xml.Linq.XElement element ) : void
read_program ( Program program, System.Xml.Linq.XElement element ) : void
read_source ( Source source, System.Xml.Linq.XElement element ) : void
read_vertex_shader ( VertexShader vertexShader, System.Xml.Linq.XElement element ) : void

Method Details

Load() public static method

public static Load ( string filename ) : ShaderLibrary
filename string
return ShaderLibrary

Parse() public static method

public static Parse ( string xml ) : ShaderLibrary
xml string
return ShaderLibrary

ShaderLibrary() public method

public ShaderLibrary ( ) : System
return System