I'm looking at what antialiasing options are available, and I thought one easy thing to to would be to turn on multisampling to give whole scene antialiasing. However, I'm having trouble seeing how to do it. There does seem to be a way to enable multisampling
in the texture that's used for the stencil buffer. I tried that and had no success, which led me to think that the SurfaceImageSource needs to be also set up as a multisample render target, but there appears to be no way to do that.

Answers

For Metro style apps, we no longer resolve multi-sampled surfaces automatically for presentation. Instead, you should create your own intermediate MSAA surface, then use ResolveSubresource to copy it to the non-MSAA SurfaceImageSource.
Note that compared to Desktop/Win7, this technique involves no additional copies, but rather moves the copy step from OS code into app code.

For Metro style apps, we no longer resolve multi-sampled surfaces automatically for presentation. Instead, you should create your own intermediate MSAA surface, then use ResolveSubresource to copy it to the non-MSAA SurfaceImageSource.
Note that compared to Desktop/Win7, this technique involves no additional copies, but rather moves the copy step from OS code into app code.

I've been looking into doing something similar to that by first rendering to an intermediate texture, and then rendering a quad to the SurfaceImageSource using the intermediate texture as a shader resource for the SurfaceImageSource
render target. This would seem to allow rendering to arbitrary textures before finally rendering to the SurfaceImageSource. I haven't got as far as making multisampling work yet, but this was a prerequisite.

For Metro style apps, we no longer resolve multi-sampled surfaces automatically for presentation. Instead, you should create your own intermediate MSAA surface, then use ResolveSubresource to copy it to the non-MSAA SurfaceImageSource.
Note that compared to Desktop/Win7, this technique involves no additional copies, but rather moves the copy step from OS code into app code.

-Jeff

Jeff Sanders (MSFT)

Jeff,

Do you have a working example on your approach? I've tried it with Metro SwapChain based interop solution, and it works pretty well, but not shared surface like SurfaceImageSource.

If this is not a supported scenario, then the MSDN documentation should be strengthened to mention this, otherwise it will waste lots of developers' valuable time.