C# Class Xenko.Shaders.Compiler.EffectCompilerBase

Base class for implementations of IEffectCompiler, providing some helper functions.
Inheritance: DisposeBase, IEffectCompiler
显示文件 Open project: phr00t/FocusEngine Class Usage Examples

Public Properties

Property Type Description
DefaultSourceShaderFolder string

Public Methods

Method Description
Compile ( ShaderSource shaderSource, Xenko.Shaders.Compiler.CompilerParameters compilerParameters ) : Xenko.Shaders.Compiler.CompilerResults
Compile ( ShaderMixinSource mixinTree, Xenko.Shaders.Compiler.EffectCompilerParameters effectParameters, Xenko.Shaders.Compiler.CompilerParameters compilerParameters ) : TaskOrResult

Compiles the ShaderMixinSource into a platform bytecode.

GetShaderSourceHash ( string type ) : ObjectId
GetStoragePathFromShaderType ( string type ) : string
ResetCache ( HashSet modifiedShaders ) : void

Remove cached files for modified shaders

Protected Methods

Method Description
EffectCompilerBase ( ) : System

Method Details

Compile() public method

public Compile ( ShaderSource shaderSource, Xenko.Shaders.Compiler.CompilerParameters compilerParameters ) : Xenko.Shaders.Compiler.CompilerResults
shaderSource ShaderSource
compilerParameters Xenko.Shaders.Compiler.CompilerParameters
return Xenko.Shaders.Compiler.CompilerResults

Compile() public abstract method

Compiles the ShaderMixinSource into a platform bytecode.
public abstract Compile ( ShaderMixinSource mixinTree, Xenko.Shaders.Compiler.EffectCompilerParameters effectParameters, Xenko.Shaders.Compiler.CompilerParameters compilerParameters ) : TaskOrResult
mixinTree ShaderMixinSource The mixin tree.
effectParameters Xenko.Shaders.Compiler.EffectCompilerParameters
compilerParameters Xenko.Shaders.Compiler.CompilerParameters
return TaskOrResult

EffectCompilerBase() protected method

protected EffectCompilerBase ( ) : System
return System

GetShaderSourceHash() public abstract method

public abstract GetShaderSourceHash ( string type ) : ObjectId
type string
return ObjectId

GetStoragePathFromShaderType() public static method

public static GetStoragePathFromShaderType ( string type ) : string
type string
return string

ResetCache() public method

Remove cached files for modified shaders
public ResetCache ( HashSet modifiedShaders ) : void
modifiedShaders HashSet
return void

Property Details

DefaultSourceShaderFolder public_oe static_oe property

public static string DefaultSourceShaderFolder
return string