C# Class ShaderCompiler.Core.Compiler

Datei anzeigen Open project: reignstudios/ReignSDK

Public Properties

Property Type Description
FileTag string

Public Methods

Method Description
Compile ( string outDirectory, CompilerOutputs outputType, bool compileMaterial, bool compileMetroShaders, bool compileSilverlightShaders ) : void
Compiler ( string projFileName ) : System

Private Methods

Method Description
compileFields ( Type shader, StreamWriter stream, StreamWriter vsStream, StreamWriter psStream, StreamWriter reflectionStream ) : void
compileLibrary ( string dllFileName, bool compileMaterial, bool compileMetroShaders, bool compileSilverlightShaders ) : string
compileMaterialFiles ( string shaderLibName, Type shader ) : string
compileShader ( Type shader, Stream stream, Stream vsStream, Stream psStream, Stream reflectionStream ) : void
convertToBasicType ( Type type, CompilerOutputs outputType, bool convertVectorTypes ) : string
convertToBasicType ( Type type, bool convertVectorTypes ) : string
convertToBasicType ( string type, CompilerOutputs outputType, bool convertVectorTypes ) : string
convertToBasicType ( string type, bool convertVectorTypes ) : string
createConstantArrayType ( FieldUsage usage, FieldInfo field, string methodValue, string globalFieldFormat, string fieldFormat, string constantType, string &constantTypeProperties, string &applyGlobalMethodBody, string &applyInstanceMethodBody, string &applyInstancingMethodBody ) : void
createConstantType ( FieldUsage usage, FieldInfo field, string methodValue, string globalFieldFormat, string fieldFormat, string constantType, string &constantTypeProperties, string &applyGlobalMethodBody, string &applyInstanceMethodBody, string &applyInstancingMethodBody ) : void
formatCode ( byte code ) : string
getBaseCompilerOutput ( ) : BaseCompilerOutputs
getBaseCompilerOutput ( CompilerOutputs outputType ) : BaseCompilerOutputs
getCompilerIfBlockNames ( ) : string[]
getGLVSInputFieldName ( FieldInfo field ) : string
getRegisterySize ( FieldInfo field ) : int
processNormalFields ( StreamWriter stream, List normalFields, BaseCompilerOutputs baseType ) : void
writeReflectionFile ( StreamWriter reflectionStream, List normalFields, int &variableByteOffset, int &resourceIndex, bool vsConstansts ) : void

Method Details

Compile() public method

public Compile ( string outDirectory, CompilerOutputs outputType, bool compileMaterial, bool compileMetroShaders, bool compileSilverlightShaders ) : void
outDirectory string
outputType CompilerOutputs
compileMaterial bool
compileMetroShaders bool
compileSilverlightShaders bool
return void

Compiler() public method

public Compiler ( string projFileName ) : System
projFileName string
return System

Property Details

FileTag public_oe property

public string FileTag
return string