Share via


MaterialProcessor.Process Method

Note

This method is available only when developing for Windows.

Builds the texture and effect content for the material.

Syntax

'Declaration
Public Overrides Function Process ( _
         input As MaterialContent, _
         context As ContentProcessorContext _
) As MaterialContent 
public override MaterialContent Process (
         MaterialContent input,
         ContentProcessorContext context
)
public:
MaterialContent Process(
         MaterialContent input,
         ContentProcessorContext context
) override

Parameters

Return Value

Type: MaterialContent
The built material.

Remarks

If the MaterialContent is of type EffectMaterialContent, a build is requested for Effect, and validation will be performed on the OpaqueData to ensure that all parameters are valid input to SetValue or SetValueTranspose. If the MaterialContent is a BasicMaterialContent, no validation will be performed on OpaqueData. Process requests builds for all textures in Textures, unless the MaterialContent is of type BasicMaterialContent, in which case a build will only be requested for DiffuseColor. The textures in Textures will be ignored.

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