Click or drag to resize
DigitalRuneDRMaterialProcessorOnBuildTexture Method
Builds texture content.

Namespace: DigitalRune.Graphics.Content.Pipeline
Assembly: DigitalRune.Graphics.Content.Pipeline (in DigitalRune.Graphics.Content.Pipeline.dll) Version: 1.2.0.0 (1.2.0.14454)
Syntax
protected virtual ExternalReference<TextureContent> OnBuildTexture(
	string textureName,
	ExternalReference<TextureContent> texture,
	ContentProcessorContext context
)

Parameters

textureName
Type: SystemString
The name of the texture. This should correspond to the key used to store the texture in Textures.
texture
Type: ExternalReferenceTextureContent
The asset to build. This should be a member of Textures. The opaque data dictionary stored in texture may contain parameters for the DRTextureProcessor.
context
Type: ContentProcessorContext
Context for the specified processor.

Return Value

Type: ExternalReferenceTextureContent
The reference to the built texture.
Remarks
textureName can be used to determine which processor to use. For example, if a texture is being used as a normal map, the user may not want to use DXT compression.
See Also