MaterialProcessor.BuildEffect Method (Microsoft.Xna.Framework.Content.Pipeline.Processors)

Builds effect content.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
protected ExternalReference<CompiledEffectContent> BuildEffect(
	ExternalReference<EffectContent> effect, 
	ContentProcessorContext context
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

effect
Type: ExternalReference<EffectContent>
An external reference to the effect content.
context
Type: Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext
Context for the specified processor.

Return Value

Type: ExternalReference<CompiledEffectContent>
A platform-specific compiled binary effect.
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.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop