I would like to enable antialiasing when drawing triangles like on the following picture:

I found a way to do it with XNA on this page but I want to do the same with SlimDX.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On SlimDX/Directx9, when you create your swapchain, use this in PresentParameters:
Also make sure that the multisample state is on (By default it is, but never sure):
There’s of course different type of samples, to find quality/samples, use the following method:
On dx10+ device, when you create your swapchain, you have a SampleDescription parameter,
so set samples count/quality accordingly
To enumerate allowed samplecount/quality combinations:
Then iterate for sample count using:
It will return 0 if sample count is not supported.