noisypants

I have a question about the verion of BuildAndLoadAsset shown below.

public TOutput BuildAndLoadAsset<TInput, TOutput>(ExternalReference<TInput> sourceAsset, string processorName, OpaqueDataDictionary processorParameters, string importerName);

Why does this one need the TInput parameter If we're passing in an importerName, isn't the output of the inporter expected to the the value passed into TInput

If there is some behind the scenes reason for needing this parameter, maybe a function that looks more like this:

public TOutput BuildAndLoadAsset<TOutput>(string filename, string processorName, OpaqueDataDictionary processorParameters, string importerName);

I can picture some situations where one would like to specify how to build a file in the middle of processing another asset, and this way you don't need to know the type that the importer will output.

Thoughts


Re: XNA Game Studio Express BuildAndLoadAsset and its generic parameters

Shawn Hargreaves - MSFT

Seems like a reasonable idea - could you file a suggestion for this over on the connect website, please