Class EffectCompilerChain
Helper class that delegates actual compilation to another IEffectCompiler.
public class EffectCompilerChain : EffectCompilerBase, IReferencable, IEffectCompiler, IDisposable
- Inheritance
-
EffectCompilerChain
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
EffectCompilerChain(EffectCompilerBase)
public EffectCompilerChain(EffectCompilerBase compiler)
Parameters
compiler
EffectCompilerBase
Properties
Compiler
protected EffectCompilerBase Compiler { get; }
Property Value
FileProvider
Gets or sets the database file provider, to use for loading effects and shader sources.
public override IVirtualFileProvider FileProvider { get; set; }
Property Value
- IVirtualFileProvider
The database file provider.
Methods
Compile(ShaderMixinSource, EffectCompilerParameters, CompilerParameters)
Compiles the ShaderMixinSource into a platform bytecode.
public override TaskOrResult<EffectBytecodeCompilerResult> Compile(ShaderMixinSource mixinTree, EffectCompilerParameters effectParameters, CompilerParameters compilerParameters = null)
Parameters
mixinTree
ShaderMixinSourceThe mixin tree.
effectParameters
EffectCompilerParameterscompilerParameters
CompilerParameters
Returns
- TaskOrResult<EffectBytecodeCompilerResult>
The platform-dependent bytecode.
Destroy()
Disposes of object resources.
protected override void Destroy()
GetShaderSourceHash(string)
public override ObjectId GetShaderSourceHash(string type)
Parameters
type
string
Returns
ResetCache(HashSet<string>)
Remove cached files for modified shaders
public override void ResetCache(HashSet<string> modifiedShaders)