| DRMaterialProcessorOnBuildTexture Method |
Builds texture content.
Namespace: DigitalRune.Graphics.Content.PipelineAssembly: 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
)
Protected Overridable Function OnBuildTexture (
textureName As String,
texture As ExternalReference(Of TextureContent),
context As ContentProcessorContext
) As ExternalReference(Of TextureContent)
protected:
virtual ExternalReference<TextureContent^>^ OnBuildTexture(
String^ textureName,
ExternalReference<TextureContent^>^ texture,
ContentProcessorContext^ context
)
abstract OnBuildTexture :
textureName : string *
texture : ExternalReference<TextureContent> *
context : ContentProcessorContext -> ExternalReference<TextureContent>
override OnBuildTexture :
textureName : string *
texture : ExternalReference<TextureContent> *
context : ContentProcessorContext -> ExternalReference<TextureContent>
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:
ExternalReferenceTextureContentThe 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