Class ShaderMixinManager
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
stringName 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
stringThe name.
properties
ParameterCollectionThe 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
stringName of the mixin.
builder
IShaderMixinBuilderThe 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
stringName of the mixin.
builder
IShaderMixinBuilderThe 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()