MaterialProcessor.BuildEffect Method
Builds effect content.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
protected virtual ExternalReference<CompiledEffect> BuildEffect (
ExternalReference<EffectContent> effect,
ContentProcessorContext context
)
Parameters
- effect
An external reference to the effect content. - context
Context for the specified processor.
Return Value
A platform-specific compiled binary effect.
Remarks
If the input to process is of type EffectMaterialContent, this function will be called to request that the EffectContent be built. The EffectProcessor is used to process the EffectContent. Subclasses of MaterialProcessor can override this function to modify the parameters used to build EffectContent. For example, a different version of this function could request a different processor for the EffectContent.
See Also
Reference
MaterialProcessor Class
MaterialProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows XP SP2, Windows Vista