MaterialProcessor.Process Method (Microsoft.Xna.Framework.Content.Pipeline.Processors)
Builds the texture and effect content for the material.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public MaterialContent Process( MaterialContent input, ContentProcessorContext context )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- input
-
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent
The material content to build.
- context
-
Type: Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext
Context for the specified processor.
Return Value
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContentThe built material.
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.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop