Table of Contents

Class ShaderMixinManager

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

Manages IShaderMixinBuilder and generation of shader mixins.

public class ShaderMixinManager
Inheritance
ShaderMixinManager

Methods

Contains(string)

Determines whether the specified PDXFX effect is registered.

public static bool Contains(string sdfxEffectName)

Parameters

sdfxEffectName string

Name of the PDXFX effect.

Returns

bool

true if the specified PDXFX effect is registered; otherwise, false.

Exceptions

ArgumentNullException

sdfxEffectName

Generate(string, ParameterCollection)

Generates a ShaderMixinSource for the specified names and parameters.

public static ShaderMixinSource Generate(string sdfxEffectName, ParameterCollection properties)

Parameters

sdfxEffectName string

The name.

properties ParameterCollection

The properties.

Returns

ShaderMixinSource

The result of the mixin.

Exceptions

ArgumentNullException

sdfxEffectName or properties

ArgumentException

sdfxEffectName

Register(string, IShaderMixinBuilder)

Registers a IShaderMixinBuilder with the specified sdfx effect name.

public static void Register(string sdfxEffectName, IShaderMixinBuilder builder)

Parameters

sdfxEffectName string

Name of the mixin.

builder IShaderMixinBuilder

The builder.

Exceptions

ArgumentNullException

sdfxEffectName or builder

TryGet(string, out IShaderMixinBuilder)

Tries to get a IShaderMixinBuilder by its name.

public static bool TryGet(string sdfxEffectName, out IShaderMixinBuilder builder)

Parameters

sdfxEffectName string

Name of the mixin.

builder IShaderMixinBuilder

The builder instance found or null if not found.

Returns

bool

true if the builder was found, false otherwise.

Exceptions

ArgumentNullException

sdfxEffectName

UnRegisterAll()

Un-register all registered IShaderMixinBuilder.

public static void UnRegisterAll()