Commit 8eeb2bd1 by Jamie Madill

Add multisample render target info to DXGI tables.

Saves us some time on startup. Also assume every multisample format can support 1x multisampling, and that if we support a higher format we support all lower sample counts (eg - if we support 16x we support 8x and 4x, etc) BUG=angleproject:1014 Change-Id: I62143e5db561b717edd1a0c96f5e3acd4de3d154 Reviewed-on: https://chromium-review.googlesource.com/275777Reviewed-by: 's avatarBrandon Jones <bajones@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 405f3471
...@@ -58,7 +58,7 @@ GLuint TextureCaps::getNearestSamples(GLuint requestedSamples) const ...@@ -58,7 +58,7 @@ GLuint TextureCaps::getNearestSamples(GLuint requestedSamples) const
void TextureCapsMap::insert(GLenum internalFormat, const TextureCaps &caps) void TextureCapsMap::insert(GLenum internalFormat, const TextureCaps &caps)
{ {
mCapsMap.insert(std::make_pair(internalFormat, caps)); mCapsMap[internalFormat] = caps;
} }
void TextureCapsMap::remove(GLenum internalFormat) void TextureCapsMap::remove(GLenum internalFormat)
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R32G32B32A32_FLOAT": "DXGI_FORMAT_R32G32B32A32_FLOAT":
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R32G32B32_FLOAT": "DXGI_FORMAT_R32G32B32_FLOAT":
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R16G16B16A16_FLOAT": "DXGI_FORMAT_R16G16B16A16_FLOAT":
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R32G32_FLOAT": "DXGI_FORMAT_R32G32_FLOAT":
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_D32_FLOAT_S8X24_UINT": "DXGI_FORMAT_D32_FLOAT_S8X24_UINT":
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0check10_1always", "shaderSample": "10_0check10_1always",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_X32_TYPELESS_G8X24_UINT": "DXGI_FORMAT_X32_TYPELESS_G8X24_UINT":
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R10G10B10A2_TYPELESS": "DXGI_FORMAT_R10G10B10A2_TYPELESS":
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R10G10B10A2_UNORM": "DXGI_FORMAT_R10G10B10A2_UNORM":
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R8G8B8A8_UNORM": "DXGI_FORMAT_R8G8B8A8_UNORM":
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R16G16_FLOAT": "DXGI_FORMAT_R16G16_FLOAT":
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_D32_FLOAT": "DXGI_FORMAT_D32_FLOAT":
...@@ -447,7 +447,7 @@ ...@@ -447,7 +447,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_D24_UNORM_S8_UINT": "DXGI_FORMAT_D24_UNORM_S8_UINT":
...@@ -467,7 +467,7 @@ ...@@ -467,7 +467,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0check10_1always", "shaderSample": "10_0check10_1always",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_X24_TYPELESS_G8_UINT": "DXGI_FORMAT_X24_TYPELESS_G8_UINT":
...@@ -477,7 +477,7 @@ ...@@ -477,7 +477,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R8G8_TYPELESS": "DXGI_FORMAT_R8G8_TYPELESS":
...@@ -487,7 +487,7 @@ ...@@ -487,7 +487,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R8G8_UNORM": "DXGI_FORMAT_R8G8_UNORM":
...@@ -537,7 +537,7 @@ ...@@ -537,7 +537,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R16_FLOAT": "DXGI_FORMAT_R16_FLOAT":
...@@ -607,7 +607,7 @@ ...@@ -607,7 +607,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R8_UNORM": "DXGI_FORMAT_R8_UNORM":
...@@ -667,7 +667,7 @@ ...@@ -667,7 +667,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R9G9B9E5_SHAREDEXP": "DXGI_FORMAT_R9G9B9E5_SHAREDEXP":
...@@ -677,7 +677,7 @@ ...@@ -677,7 +677,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_R8G8_B8G8_UNORM": "DXGI_FORMAT_R8G8_B8G8_UNORM":
...@@ -687,7 +687,7 @@ ...@@ -687,7 +687,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_G8R8_G8B8_UNORM": "DXGI_FORMAT_G8R8_G8B8_UNORM":
...@@ -697,7 +697,7 @@ ...@@ -697,7 +697,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC1_TYPELESS": "DXGI_FORMAT_BC1_TYPELESS":
...@@ -707,7 +707,7 @@ ...@@ -707,7 +707,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC1_UNORM": "DXGI_FORMAT_BC1_UNORM":
...@@ -717,7 +717,7 @@ ...@@ -717,7 +717,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC1_UNORM_SRGB": "DXGI_FORMAT_BC1_UNORM_SRGB":
...@@ -727,7 +727,7 @@ ...@@ -727,7 +727,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC2_TYPELESS": "DXGI_FORMAT_BC2_TYPELESS":
...@@ -737,7 +737,7 @@ ...@@ -737,7 +737,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC2_UNORM": "DXGI_FORMAT_BC2_UNORM":
...@@ -747,7 +747,7 @@ ...@@ -747,7 +747,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC2_UNORM_SRGB": "DXGI_FORMAT_BC2_UNORM_SRGB":
...@@ -757,7 +757,7 @@ ...@@ -757,7 +757,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC3_TYPELESS": "DXGI_FORMAT_BC3_TYPELESS":
...@@ -767,7 +767,7 @@ ...@@ -767,7 +767,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC3_UNORM": "DXGI_FORMAT_BC3_UNORM":
...@@ -777,7 +777,7 @@ ...@@ -777,7 +777,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC3_UNORM_SRGB": "DXGI_FORMAT_BC3_UNORM_SRGB":
...@@ -787,7 +787,7 @@ ...@@ -787,7 +787,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC4_TYPELESS": "DXGI_FORMAT_BC4_TYPELESS":
...@@ -797,7 +797,7 @@ ...@@ -797,7 +797,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC4_UNORM": "DXGI_FORMAT_BC4_UNORM":
...@@ -807,7 +807,7 @@ ...@@ -807,7 +807,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC4_SNORM": "DXGI_FORMAT_BC4_SNORM":
...@@ -817,7 +817,7 @@ ...@@ -817,7 +817,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC5_TYPELESS": "DXGI_FORMAT_BC5_TYPELESS":
...@@ -827,7 +827,7 @@ ...@@ -827,7 +827,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC5_UNORM": "DXGI_FORMAT_BC5_UNORM":
...@@ -837,7 +837,7 @@ ...@@ -837,7 +837,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC5_SNORM": "DXGI_FORMAT_BC5_SNORM":
...@@ -847,7 +847,7 @@ ...@@ -847,7 +847,7 @@
"textureCube": "always", "textureCube": "always",
"shaderSample": "10_0", "shaderSample": "10_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_B5G6R5_UNORM": "DXGI_FORMAT_B5G6R5_UNORM":
...@@ -897,7 +897,7 @@ ...@@ -897,7 +897,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_B8G8R8A8_TYPELESS": "DXGI_FORMAT_B8G8R8A8_TYPELESS":
...@@ -907,7 +907,7 @@ ...@@ -907,7 +907,7 @@
"textureCube": "check", "textureCube": "check",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_B8G8R8A8_UNORM_SRGB": "DXGI_FORMAT_B8G8R8A8_UNORM_SRGB":
...@@ -927,7 +927,7 @@ ...@@ -927,7 +927,7 @@
"textureCube": "check", "textureCube": "check",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_B8G8R8X8_UNORM_SRGB": "DXGI_FORMAT_B8G8R8X8_UNORM_SRGB":
...@@ -947,7 +947,7 @@ ...@@ -947,7 +947,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC6H_UF16": "DXGI_FORMAT_BC6H_UF16":
...@@ -957,7 +957,7 @@ ...@@ -957,7 +957,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "11_0", "shaderSample": "11_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC6H_SF16": "DXGI_FORMAT_BC6H_SF16":
...@@ -967,7 +967,7 @@ ...@@ -967,7 +967,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "11_0", "shaderSample": "11_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC7_TYPELESS": "DXGI_FORMAT_BC7_TYPELESS":
...@@ -977,7 +977,7 @@ ...@@ -977,7 +977,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC7_UNORM": "DXGI_FORMAT_BC7_UNORM":
...@@ -987,7 +987,7 @@ ...@@ -987,7 +987,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "11_0", "shaderSample": "11_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_BC7_UNORM_SRGB": "DXGI_FORMAT_BC7_UNORM_SRGB":
...@@ -997,7 +997,7 @@ ...@@ -997,7 +997,7 @@
"textureCube": "11_0", "textureCube": "11_0",
"shaderSample": "11_0", "shaderSample": "11_0",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_AYUV": "DXGI_FORMAT_AYUV":
...@@ -1017,7 +1017,7 @@ ...@@ -1017,7 +1017,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "11_1", "shaderSample": "11_1",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_Y416": "DXGI_FORMAT_Y416":
...@@ -1027,7 +1027,7 @@ ...@@ -1027,7 +1027,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "11_1", "shaderSample": "11_1",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_NV12": "DXGI_FORMAT_NV12":
...@@ -1067,7 +1067,7 @@ ...@@ -1067,7 +1067,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_YUY2": "DXGI_FORMAT_YUY2":
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "11_1", "shaderSample": "11_1",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_Y210": "DXGI_FORMAT_Y210":
...@@ -1087,7 +1087,7 @@ ...@@ -1087,7 +1087,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "11_1", "shaderSample": "11_1",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_Y216": "DXGI_FORMAT_Y216":
...@@ -1097,7 +1097,7 @@ ...@@ -1097,7 +1097,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "11_1", "shaderSample": "11_1",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_NV11": "DXGI_FORMAT_NV11":
...@@ -1117,7 +1117,7 @@ ...@@ -1117,7 +1117,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_IA44": "DXGI_FORMAT_IA44":
...@@ -1127,7 +1127,7 @@ ...@@ -1127,7 +1127,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_P8": "DXGI_FORMAT_P8":
...@@ -1137,7 +1137,7 @@ ...@@ -1137,7 +1137,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_A8P8": "DXGI_FORMAT_A8P8":
...@@ -1147,7 +1147,7 @@ ...@@ -1147,7 +1147,7 @@
"textureCube": "never", "textureCube": "never",
"shaderSample": "never", "shaderSample": "never",
"renderTarget": "never", "renderTarget": "never",
"multisampleRT": "check", "multisampleRT": "never",
"depthStencil": "never" "depthStencil": "never"
}, },
"DXGI_FORMAT_B4G4R4A4_UNORM": "DXGI_FORMAT_B4G4R4A4_UNORM":
......
...@@ -49,12 +49,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -49,12 +49,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
{ {
case DXGI_FORMAT_420_OPAQUE: case DXGI_FORMAT_420_OPAQUE:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8P8: case DXGI_FORMAT_A8P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8_UNORM: case DXGI_FORMAT_A8_UNORM:
...@@ -64,7 +64,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -64,7 +64,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_AI44: case DXGI_FORMAT_AI44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_AYUV: case DXGI_FORMAT_AYUV:
...@@ -89,7 +89,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -89,7 +89,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8A8_TYPELESS: case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8A8_UNORM: case DXGI_FORMAT_B8G8R8A8_UNORM:
...@@ -104,7 +104,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -104,7 +104,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8X8_TYPELESS: case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8X8_UNORM: case DXGI_FORMAT_B8G8R8X8_UNORM:
...@@ -119,107 +119,107 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -119,107 +119,107 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_BC1_TYPELESS: case DXGI_FORMAT_BC1_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM: case DXGI_FORMAT_BC1_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM_SRGB: case DXGI_FORMAT_BC1_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_TYPELESS: case DXGI_FORMAT_BC2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM: case DXGI_FORMAT_BC2_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM_SRGB: case DXGI_FORMAT_BC2_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_TYPELESS: case DXGI_FORMAT_BC3_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM: case DXGI_FORMAT_BC3_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM_SRGB: case DXGI_FORMAT_BC3_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_SNORM: case DXGI_FORMAT_BC4_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_TYPELESS: case DXGI_FORMAT_BC4_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_UNORM: case DXGI_FORMAT_BC4_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_SNORM: case DXGI_FORMAT_BC5_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_TYPELESS: case DXGI_FORMAT_BC5_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_UNORM: case DXGI_FORMAT_BC5_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_SF16: case DXGI_FORMAT_BC6H_SF16:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_TYPELESS: case DXGI_FORMAT_BC6H_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_UF16: case DXGI_FORMAT_BC6H_UF16:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_TYPELESS: case DXGI_FORMAT_BC7_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM: case DXGI_FORMAT_BC7_UNORM:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM_SRGB: case DXGI_FORMAT_BC7_UNORM_SRGB:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_D16_UNORM: case DXGI_FORMAT_D16_UNORM:
...@@ -244,12 +244,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -244,12 +244,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_G8R8_G8B8_UNORM: case DXGI_FORMAT_G8R8_G8B8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_IA44: case DXGI_FORMAT_IA44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_NV11: case DXGI_FORMAT_NV11:
...@@ -274,12 +274,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -274,12 +274,12 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_P8: case DXGI_FORMAT_P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_TYPELESS: case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_UINT: case DXGI_FORMAT_R10G10B10A2_UINT:
...@@ -294,7 +294,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -294,7 +294,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM: case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{ {
static const DXGISupport info(0, F_CUBE | F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_MS); static const DXGISupport info(0, F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D);
return info; return info;
} }
case DXGI_FORMAT_R11G11B10_FLOAT: case DXGI_FORMAT_R11G11B10_FLOAT:
...@@ -319,7 +319,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -319,7 +319,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16B16A16_TYPELESS: case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16B16A16_UINT: case DXGI_FORMAT_R16G16B16A16_UINT:
...@@ -349,7 +349,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -349,7 +349,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16_TYPELESS: case DXGI_FORMAT_R16G16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16_UINT: case DXGI_FORMAT_R16G16_UINT:
...@@ -379,7 +379,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -379,7 +379,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16_TYPELESS: case DXGI_FORMAT_R16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16_UINT: case DXGI_FORMAT_R16_UINT:
...@@ -394,17 +394,17 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -394,17 +394,17 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R1_UNORM: case DXGI_FORMAT_R1_UNORM:
{ {
static const DXGISupport info(F_2D, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24G8_TYPELESS: case DXGI_FORMAT_R24G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS: case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT, F_MS | F_SAMPLE); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT, F_SAMPLE);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_FLOAT: case DXGI_FORMAT_R32G32B32A32_FLOAT:
...@@ -419,7 +419,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -419,7 +419,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32A32_TYPELESS: case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_UINT: case DXGI_FORMAT_R32G32B32A32_UINT:
...@@ -439,7 +439,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -439,7 +439,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32_TYPELESS: case DXGI_FORMAT_R32G32B32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32_UINT: case DXGI_FORMAT_R32G32B32_UINT:
...@@ -459,7 +459,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -459,7 +459,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32_TYPELESS: case DXGI_FORMAT_R32G32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32_UINT: case DXGI_FORMAT_R32G32_UINT:
...@@ -469,7 +469,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -469,7 +469,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G8X24_TYPELESS: case DXGI_FORMAT_R32G8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_FLOAT: case DXGI_FORMAT_R32_FLOAT:
...@@ -479,7 +479,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -479,7 +479,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS: case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT, F_MS | F_SAMPLE); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT, F_SAMPLE);
return info; return info;
} }
case DXGI_FORMAT_R32_SINT: case DXGI_FORMAT_R32_SINT:
...@@ -489,7 +489,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -489,7 +489,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_TYPELESS: case DXGI_FORMAT_R32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_UINT: case DXGI_FORMAT_R32_UINT:
...@@ -509,7 +509,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -509,7 +509,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8B8A8_TYPELESS: case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8B8A8_UINT: case DXGI_FORMAT_R8G8B8A8_UINT:
...@@ -529,7 +529,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -529,7 +529,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_B8G8_UNORM: case DXGI_FORMAT_R8G8_B8G8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_SINT: case DXGI_FORMAT_R8G8_SINT:
...@@ -544,7 +544,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -544,7 +544,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_TYPELESS: case DXGI_FORMAT_R8G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_UINT: case DXGI_FORMAT_R8G8_UINT:
...@@ -569,7 +569,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -569,7 +569,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8_TYPELESS: case DXGI_FORMAT_R8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8_UINT: case DXGI_FORMAT_R8_UINT:
...@@ -584,7 +584,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -584,7 +584,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP: case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_UNKNOWN: case DXGI_FORMAT_UNKNOWN:
...@@ -594,37 +594,37 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat) ...@@ -594,37 +594,37 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_X24_TYPELESS_G8_UINT: case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT: case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y210: case DXGI_FORMAT_Y210:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y216: case DXGI_FORMAT_Y216:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y410: case DXGI_FORMAT_Y410:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y416: case DXGI_FORMAT_Y416:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_YUY2: case DXGI_FORMAT_YUY2:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
...@@ -640,12 +640,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -640,12 +640,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
{ {
case DXGI_FORMAT_420_OPAQUE: case DXGI_FORMAT_420_OPAQUE:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8P8: case DXGI_FORMAT_A8P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8_UNORM: case DXGI_FORMAT_A8_UNORM:
...@@ -655,7 +655,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -655,7 +655,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_AI44: case DXGI_FORMAT_AI44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_AYUV: case DXGI_FORMAT_AYUV:
...@@ -680,7 +680,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -680,7 +680,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8A8_TYPELESS: case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8A8_UNORM: case DXGI_FORMAT_B8G8R8A8_UNORM:
...@@ -695,7 +695,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -695,7 +695,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8X8_TYPELESS: case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8X8_UNORM: case DXGI_FORMAT_B8G8R8X8_UNORM:
...@@ -710,107 +710,107 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -710,107 +710,107 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_BC1_TYPELESS: case DXGI_FORMAT_BC1_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM: case DXGI_FORMAT_BC1_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM_SRGB: case DXGI_FORMAT_BC1_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_TYPELESS: case DXGI_FORMAT_BC2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM: case DXGI_FORMAT_BC2_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM_SRGB: case DXGI_FORMAT_BC2_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_TYPELESS: case DXGI_FORMAT_BC3_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM: case DXGI_FORMAT_BC3_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM_SRGB: case DXGI_FORMAT_BC3_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_SNORM: case DXGI_FORMAT_BC4_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_TYPELESS: case DXGI_FORMAT_BC4_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_UNORM: case DXGI_FORMAT_BC4_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_SNORM: case DXGI_FORMAT_BC5_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_TYPELESS: case DXGI_FORMAT_BC5_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_UNORM: case DXGI_FORMAT_BC5_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_SF16: case DXGI_FORMAT_BC6H_SF16:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_TYPELESS: case DXGI_FORMAT_BC6H_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_UF16: case DXGI_FORMAT_BC6H_UF16:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_TYPELESS: case DXGI_FORMAT_BC7_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM: case DXGI_FORMAT_BC7_UNORM:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM_SRGB: case DXGI_FORMAT_BC7_UNORM_SRGB:
{ {
static const DXGISupport info(0, F_DS | F_RT, F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_D16_UNORM: case DXGI_FORMAT_D16_UNORM:
...@@ -835,12 +835,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -835,12 +835,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_G8R8_G8B8_UNORM: case DXGI_FORMAT_G8R8_G8B8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_IA44: case DXGI_FORMAT_IA44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_NV11: case DXGI_FORMAT_NV11:
...@@ -865,12 +865,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -865,12 +865,12 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_P8: case DXGI_FORMAT_P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_TYPELESS: case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_UINT: case DXGI_FORMAT_R10G10B10A2_UINT:
...@@ -885,7 +885,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -885,7 +885,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM: case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{ {
static const DXGISupport info(0, F_CUBE | F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_MS); static const DXGISupport info(0, F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D);
return info; return info;
} }
case DXGI_FORMAT_R11G11B10_FLOAT: case DXGI_FORMAT_R11G11B10_FLOAT:
...@@ -910,7 +910,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -910,7 +910,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16B16A16_TYPELESS: case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16B16A16_UINT: case DXGI_FORMAT_R16G16B16A16_UINT:
...@@ -940,7 +940,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -940,7 +940,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16_TYPELESS: case DXGI_FORMAT_R16G16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16_UINT: case DXGI_FORMAT_R16G16_UINT:
...@@ -970,7 +970,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -970,7 +970,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16_TYPELESS: case DXGI_FORMAT_R16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16_UINT: case DXGI_FORMAT_R16_UINT:
...@@ -985,17 +985,17 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -985,17 +985,17 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R1_UNORM: case DXGI_FORMAT_R1_UNORM:
{ {
static const DXGISupport info(F_2D, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24G8_TYPELESS: case DXGI_FORMAT_R24G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS: case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_FLOAT: case DXGI_FORMAT_R32G32B32A32_FLOAT:
...@@ -1010,7 +1010,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1010,7 +1010,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32A32_TYPELESS: case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_UINT: case DXGI_FORMAT_R32G32B32A32_UINT:
...@@ -1030,7 +1030,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1030,7 +1030,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32_TYPELESS: case DXGI_FORMAT_R32G32B32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32_UINT: case DXGI_FORMAT_R32G32B32_UINT:
...@@ -1050,7 +1050,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1050,7 +1050,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32_TYPELESS: case DXGI_FORMAT_R32G32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32_UINT: case DXGI_FORMAT_R32G32_UINT:
...@@ -1060,7 +1060,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1060,7 +1060,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G8X24_TYPELESS: case DXGI_FORMAT_R32G8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_FLOAT: case DXGI_FORMAT_R32_FLOAT:
...@@ -1070,7 +1070,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1070,7 +1070,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS: case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_SINT: case DXGI_FORMAT_R32_SINT:
...@@ -1080,7 +1080,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1080,7 +1080,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_TYPELESS: case DXGI_FORMAT_R32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_UINT: case DXGI_FORMAT_R32_UINT:
...@@ -1100,7 +1100,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1100,7 +1100,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8B8A8_TYPELESS: case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8B8A8_UINT: case DXGI_FORMAT_R8G8B8A8_UINT:
...@@ -1120,7 +1120,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1120,7 +1120,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_B8G8_UNORM: case DXGI_FORMAT_R8G8_B8G8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_SINT: case DXGI_FORMAT_R8G8_SINT:
...@@ -1135,7 +1135,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1135,7 +1135,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_TYPELESS: case DXGI_FORMAT_R8G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_UINT: case DXGI_FORMAT_R8G8_UINT:
...@@ -1160,7 +1160,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1160,7 +1160,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8_TYPELESS: case DXGI_FORMAT_R8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8_UINT: case DXGI_FORMAT_R8_UINT:
...@@ -1175,7 +1175,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1175,7 +1175,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP: case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_UNKNOWN: case DXGI_FORMAT_UNKNOWN:
...@@ -1185,37 +1185,37 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat) ...@@ -1185,37 +1185,37 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_X24_TYPELESS_G8_UINT: case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT: case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y210: case DXGI_FORMAT_Y210:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y216: case DXGI_FORMAT_Y216:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y410: case DXGI_FORMAT_Y410:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y416: case DXGI_FORMAT_Y416:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_YUY2: case DXGI_FORMAT_YUY2:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
...@@ -1231,12 +1231,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1231,12 +1231,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
{ {
case DXGI_FORMAT_420_OPAQUE: case DXGI_FORMAT_420_OPAQUE:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8P8: case DXGI_FORMAT_A8P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_A8_UNORM: case DXGI_FORMAT_A8_UNORM:
...@@ -1246,7 +1246,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1246,7 +1246,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_AI44: case DXGI_FORMAT_AI44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_AYUV: case DXGI_FORMAT_AYUV:
...@@ -1271,7 +1271,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1271,7 +1271,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8A8_TYPELESS: case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8A8_UNORM: case DXGI_FORMAT_B8G8R8A8_UNORM:
...@@ -1286,7 +1286,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1286,7 +1286,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_B8G8R8X8_TYPELESS: case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{ {
static const DXGISupport info(0, F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE | F_MS); static const DXGISupport info(0, F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D | F_CUBE);
return info; return info;
} }
case DXGI_FORMAT_B8G8R8X8_UNORM: case DXGI_FORMAT_B8G8R8X8_UNORM:
...@@ -1301,107 +1301,107 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1301,107 +1301,107 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_BC1_TYPELESS: case DXGI_FORMAT_BC1_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM: case DXGI_FORMAT_BC1_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC1_UNORM_SRGB: case DXGI_FORMAT_BC1_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_TYPELESS: case DXGI_FORMAT_BC2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM: case DXGI_FORMAT_BC2_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC2_UNORM_SRGB: case DXGI_FORMAT_BC2_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_TYPELESS: case DXGI_FORMAT_BC3_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM: case DXGI_FORMAT_BC3_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC3_UNORM_SRGB: case DXGI_FORMAT_BC3_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_SNORM: case DXGI_FORMAT_BC4_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_TYPELESS: case DXGI_FORMAT_BC4_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC4_UNORM: case DXGI_FORMAT_BC4_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_SNORM: case DXGI_FORMAT_BC5_SNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_TYPELESS: case DXGI_FORMAT_BC5_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC5_UNORM: case DXGI_FORMAT_BC5_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_SF16: case DXGI_FORMAT_BC6H_SF16:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_TYPELESS: case DXGI_FORMAT_BC6H_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC6H_UF16: case DXGI_FORMAT_BC6H_UF16:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_TYPELESS: case DXGI_FORMAT_BC7_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM: case DXGI_FORMAT_BC7_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_BC7_UNORM_SRGB: case DXGI_FORMAT_BC7_UNORM_SRGB:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_D16_UNORM: case DXGI_FORMAT_D16_UNORM:
...@@ -1426,12 +1426,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1426,12 +1426,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_G8R8_G8B8_UNORM: case DXGI_FORMAT_G8R8_G8B8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_IA44: case DXGI_FORMAT_IA44:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_NV11: case DXGI_FORMAT_NV11:
...@@ -1456,12 +1456,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1456,12 +1456,12 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_P8: case DXGI_FORMAT_P8:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_TYPELESS: case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R10G10B10A2_UINT: case DXGI_FORMAT_R10G10B10A2_UINT:
...@@ -1476,7 +1476,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1476,7 +1476,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM: case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{ {
static const DXGISupport info(0, F_CUBE | F_DS | F_RT | F_SAMPLE, F_2D | F_3D | F_MS); static const DXGISupport info(0, F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, F_2D | F_3D);
return info; return info;
} }
case DXGI_FORMAT_R11G11B10_FLOAT: case DXGI_FORMAT_R11G11B10_FLOAT:
...@@ -1501,7 +1501,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1501,7 +1501,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16B16A16_TYPELESS: case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16B16A16_UINT: case DXGI_FORMAT_R16G16B16A16_UINT:
...@@ -1531,7 +1531,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1531,7 +1531,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16G16_TYPELESS: case DXGI_FORMAT_R16G16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16G16_UINT: case DXGI_FORMAT_R16G16_UINT:
...@@ -1561,7 +1561,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1561,7 +1561,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R16_TYPELESS: case DXGI_FORMAT_R16_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R16_UINT: case DXGI_FORMAT_R16_UINT:
...@@ -1576,17 +1576,17 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1576,17 +1576,17 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R1_UNORM: case DXGI_FORMAT_R1_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24G8_TYPELESS: case DXGI_FORMAT_R24G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS: case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_FLOAT: case DXGI_FORMAT_R32G32B32A32_FLOAT:
...@@ -1601,7 +1601,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1601,7 +1601,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32A32_TYPELESS: case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32A32_UINT: case DXGI_FORMAT_R32G32B32A32_UINT:
...@@ -1621,7 +1621,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1621,7 +1621,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32B32_TYPELESS: case DXGI_FORMAT_R32G32B32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32B32_UINT: case DXGI_FORMAT_R32G32B32_UINT:
...@@ -1641,7 +1641,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1641,7 +1641,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G32_TYPELESS: case DXGI_FORMAT_R32G32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32G32_UINT: case DXGI_FORMAT_R32G32_UINT:
...@@ -1651,7 +1651,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1651,7 +1651,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32G8X24_TYPELESS: case DXGI_FORMAT_R32G8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_FLOAT: case DXGI_FORMAT_R32_FLOAT:
...@@ -1661,7 +1661,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1661,7 +1661,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS: case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D | F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_SINT: case DXGI_FORMAT_R32_SINT:
...@@ -1671,7 +1671,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1671,7 +1671,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R32_TYPELESS: case DXGI_FORMAT_R32_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R32_UINT: case DXGI_FORMAT_R32_UINT:
...@@ -1691,7 +1691,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1691,7 +1691,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8B8A8_TYPELESS: case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8B8A8_UINT: case DXGI_FORMAT_R8G8B8A8_UINT:
...@@ -1711,7 +1711,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1711,7 +1711,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_B8G8_UNORM: case DXGI_FORMAT_R8G8_B8G8_UNORM:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_SINT: case DXGI_FORMAT_R8G8_SINT:
...@@ -1726,7 +1726,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1726,7 +1726,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8G8_TYPELESS: case DXGI_FORMAT_R8G8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8G8_UINT: case DXGI_FORMAT_R8G8_UINT:
...@@ -1751,7 +1751,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1751,7 +1751,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R8_TYPELESS: case DXGI_FORMAT_R8_TYPELESS:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_R8_UINT: case DXGI_FORMAT_R8_UINT:
...@@ -1766,7 +1766,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1766,7 +1766,7 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP: case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{ {
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_RT, F_MS); static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT, 0);
return info; return info;
} }
case DXGI_FORMAT_UNKNOWN: case DXGI_FORMAT_UNKNOWN:
...@@ -1776,37 +1776,37 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat) ...@@ -1776,37 +1776,37 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
} }
case DXGI_FORMAT_X24_TYPELESS_G8_UINT: case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT: case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{ {
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(F_2D | F_CUBE, F_3D | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y210: case DXGI_FORMAT_Y210:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y216: case DXGI_FORMAT_Y216:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y410: case DXGI_FORMAT_Y410:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_Y416: case DXGI_FORMAT_Y416:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
case DXGI_FORMAT_YUY2: case DXGI_FORMAT_YUY2:
{ {
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_RT | F_SAMPLE, F_MS); static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE, 0);
return info; return info;
} }
......
...@@ -320,12 +320,19 @@ static gl::TextureCaps GenerateTextureFormatCaps(GLint maxClientVersion, GLenum ...@@ -320,12 +320,19 @@ static gl::TextureCaps GenerateTextureFormatCaps(GLint maxClientVersion, GLenum
if (support.query(formatInfo.renderFormat, D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET)) if (support.query(formatInfo.renderFormat, D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET))
{ {
for (size_t sampleCount = 1; sampleCount <= D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT; sampleCount *= 2) // Assume 1x
textureCaps.sampleCounts.insert(1);
for (size_t sampleCount = 2; sampleCount <= D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT; sampleCount *= 2)
{ {
UINT qualityCount = 0; UINT qualityCount = 0;
if (SUCCEEDED(device->CheckMultisampleQualityLevels(formatInfo.renderFormat, sampleCount, &qualityCount)) && if (SUCCEEDED(device->CheckMultisampleQualityLevels(formatInfo.renderFormat, sampleCount, &qualityCount)))
qualityCount > 0)
{ {
// Assume we always support lower sample counts
if (qualityCount == 0)
{
break;
}
textureCaps.sampleCounts.insert(sampleCount); textureCaps.sampleCounts.insert(sampleCount);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment