MSDN says that FEATURE_LEVEL_10_1 devices are required to support 4x MSAA for all render targets except R32G32B32A32 and R32G32B32. FEATURE_LEVEL_11_0 devices are required to support 4x MSAA for all render target formats, and 8x MSAA for all render target formats except R32G32B32A32 formats.
So why do I obtain a 0 result (i.e. the format and sample count combination is not supported for the installed adapter)?
const HRESULT result = device->CheckMultisampleQualityLevels(
DXGI_FORMAT_R16G16B16A16_FLOAT, texture_desc.SampleDesc.Count,
&texture_desc.SampleDesc.Quality);
ThrowIfFailed(result, "Texture 2D creation failed: %08X.", result);
if (result == 0u) {
// Why?
}
--texture_desc.SampleDesc.Quality;
↧