Class ShaderMixinManager
Manages IShaderMixinBuilder and generation of shader mixins.
public class ShaderMixinManager
  - Inheritance
 - 
      objectShaderMixinManager
 
Methods
Contains(string)
Determines whether the specified PDXFX effect is registered.
public static bool Contains(string sdfxEffectName)
  Parameters
sdfxEffectNamestringName of the PDXFX effect.
Returns
- bool
 trueif 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
sdfxEffectNamestringThe name.
propertiesParameterCollectionThe 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
sdfxEffectNamestringName of the mixin.
builderIShaderMixinBuilderThe 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
sdfxEffectNamestringName of the mixin.
builderIShaderMixinBuilderThe builder instance found or null if not found.
Returns
- bool
 trueif the builder was found,falseotherwise.
Exceptions
- ArgumentNullException
 sdfxEffectName
UnRegisterAll()
Un-register all registered IShaderMixinBuilder.
public static void UnRegisterAll()