Share via


MaterialProcessor.BuildEffect Method

Note

This method is available only when developing for Windows.

Builds effect content.

Syntax

'Declaration
Protected Overridable Function BuildEffect ( _
         effect As ExternalReference(Of EffectContent), _
         context As ContentProcessorContext _
) As ExternalReference(Of CompiledEffectContent) 
protected virtual ExternalReference<CompiledEffectContent> BuildEffect (
         ExternalReference<EffectContent> effect,
         ContentProcessorContext context
)
protected:
virtual ExternalReference<CompiledEffectContent> BuildEffect(
         ExternalReference<EffectContent> effect,
         ContentProcessorContext context
)

Parameters

Return Value

Type: ExternalReference<CompiledEffectContent>
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.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

MaterialProcessor Class
MaterialProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace

Platforms

Windows 7, Windows Vista, Windows XP