Table of Contents

Class NullEffectCompiler

Namespace
Stride.Shaders.Compiler
Assembly
Stride.Shaders.dll
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 IVirtualFileProvider
database 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 ShaderMixinSource

The mixin tree.

effectParameters EffectCompilerParameters
compilerParameters CompilerParameters

Returns

TaskOrResult<EffectBytecodeCompilerResult>

The platform-dependent bytecode.

GetShaderSourceHash(string)

public override ObjectId GetShaderSourceHash(string type)

Parameters

type string

Returns

ObjectId