I am learning directx 11 and trying to set up multisampling. For some reason, every tutorial on the Internet disables multisampling and never discusses how to enable it.
First: I searched and cannot find examples of using CheckMultisampleQualityLevels . It seems that you need to create a device, call this function, find out the available levels, then destroy this device and create a new one with the necessary settings. Is this the right way to do this? Or is there a better way?
Secondly, how do you enable multisampling? Since I'm not sure how to get the CheckMultisampleQualityLevels work, I tried to insert some values ββfor DXGI_SWAP_CHAIN_DESC.SampleDesc.Count and DXGI_SWAP_CHAIN_DESC.SampleDesc.Quality (for example, 4 and 4), and nothing is displayed (this is an error if I put it (this is an error if I put in crazy values ββlike 33 and 2). Does it need to be installed somewhere else besides the description of the swap chains, or somehow interfere with the shaders (I have a base light and a texture shader)?
I have a GTX 570, so I know that it can support most AA settings. I follow this set of tutorials if this helps: http://rastertek.com/tutindex.html
source share