xenia
xenia copied to clipboard
Detect bad driver settings
People seem to think it's a good idea to override dangerous driver settings like anti-aliasing, so it should be detected.
Dolphin does this (only with OpenGL?) https://github.com/dolphin-emu/dolphin/blob/b0b5faa79335895a8a0cca71567c5460c9584feb/Source/Core/VideoBackends/OGL/OGLRender.cpp#L717-L730
There's no concept of the default framebuffer in D3D10+ or Vulkan though, and in D3D12, the swap chain buffers (the ones that get sent to the screen) can't be multisampled at all, so for this, we'll probably need to actually render something and see if there is any partially covered pixel (and also to render something with 2x MSAA to see if there are no 25% or 75% coverages, and with 4x MSAA to check if there are no 12.5% and so on).