Class NullEffectCompiler
public class NullEffectCompiler : EffectCompilerBase, IReferencable, IEffectCompiler, IDisposable
- Inheritance
-
NullEffectCompiler
- Implements
- Inherited Members
- Extension Methods
Constructors
NullEffectCompiler(IVirtualFileProvider, DatabaseFileProvider)
public NullEffectCompiler(IVirtualFileProvider fileProvider, DatabaseFileProvider database)
Parameters
fileProvider
IVirtualFileProviderdatabase
DatabaseFileProvider
Properties
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.
GetShaderSourceHash(string)
public override ObjectId GetShaderSourceHash(string type)
Parameters
type
string