January 2014
Intermediate to advanced
430 pages
9h 51m
English
In this recipe, we will enable multisample antialiasing (MSAA) to smoothen lines and edges.
We can apply this recipe to any of our recipes that are implemented with a class that descends from D3DApplicationBase. Otherwise, this can be easily adapted to work with the creation of any swap chain.
We can smooth the lines in our example by enabling multisampling:
D3DApplicationBase.CreateSwapChainDescription() method in our class as follows:protected override SwapChainDescription1 CreateSwapChainDescription()
{
var description = base.CreateSwapChainDescription();
description.SampleDescription.Count = 4;
description.SampleDescription.Quality = 0; return description; ...Read now
Unlock full access