Is this the way to bind the render target view?// Set the render target and viewport var viewport = new Viewport(0.0f, 0.0f, currentOptions.ResolutionWidth, currentOptions.ResolutionHeight); context.OutputMerger.SetTargets(renderTarget); // This binds? context.Rasterizer.SetViewports(viewport);
Yes, that's correct.
I'm guessing that the render target texture is the one you get from renderTarget.Resource?
Yes, the Resource property gives you access to the underlying resource for a render target view. In this case the actual type will be Texture2D. It will also be the same instance that you create in your using block.
But which one is the backbuffer texture? How do I get that one? I thought that the render target you bound had the backbuffer, but that's probably wrong then.
The back buffer is the texture that you get from the swap chain. Basically it's the texture that the swap chain will use to display contents to your window (or to the screen in full screen mode).