Table of Contents

Class EffectCompilerChain

Namespace
Stride.Shaders.Compiler
Assembly
Stride.Shaders.dll

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

EffectCompilerBase

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 ShaderMixinSource

The mixin tree.

effectParameters EffectCompilerParameters
compilerParameters 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

ObjectId

ResetCache(HashSet<string>)

Remove cached files for modified shaders

public override void ResetCache(HashSet<string> modifiedShaders)

Parameters

modifiedShaders HashSet<string>