Commit a986c834 by Jamie Madill

Implement DXGI shader sample format tables.

This saves us some startup time in the D3D11 Renderer. BUG=angleproject:1014 Change-Id: I5d2607b58a86ee0a8932032a0f8a31b21d39b525 Reviewed-on: https://chromium-review.googlesource.com/275774Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarBrandon Jones <bajones@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 7f165fd9
......@@ -15,7 +15,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -25,7 +25,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0check10_1always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -35,7 +35,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -45,7 +45,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -55,7 +55,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -65,7 +65,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "11_0check",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -75,7 +75,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -85,7 +85,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -95,7 +95,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -105,7 +105,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -115,7 +115,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -125,7 +125,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -135,7 +135,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -145,7 +145,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -155,7 +155,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -165,7 +165,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0check10_1always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -175,7 +175,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -185,7 +185,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -195,7 +195,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -205,7 +205,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -215,7 +215,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0check10_1always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -225,7 +225,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -235,7 +235,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -245,7 +245,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -255,7 +255,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -265,7 +265,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -275,7 +275,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -285,7 +285,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -295,7 +295,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -305,7 +305,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -315,7 +315,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -325,7 +325,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -335,7 +335,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -345,7 +345,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -355,7 +355,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -365,7 +365,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -375,7 +375,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -385,7 +385,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -395,7 +395,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -405,7 +405,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -415,7 +415,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0check10_1always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -425,7 +425,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -435,7 +435,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -445,7 +445,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -455,7 +455,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -465,7 +465,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0check10_1always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -475,7 +475,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -485,7 +485,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -495,7 +495,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -505,7 +505,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -515,7 +515,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -525,7 +525,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -535,7 +535,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -545,7 +545,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -555,7 +555,7 @@
"texture2D": "always",
"texture3D": "never",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -565,7 +565,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -575,7 +575,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -585,7 +585,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -595,7 +595,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -605,7 +605,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -615,7 +615,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -625,7 +625,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -635,7 +635,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -645,7 +645,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -655,7 +655,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -665,7 +665,7 @@
"texture2D": "always",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -675,7 +675,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -685,7 +685,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -695,7 +695,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -705,7 +705,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -715,7 +715,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -725,7 +725,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -735,7 +735,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -745,7 +745,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -755,7 +755,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -765,7 +765,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -775,7 +775,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -785,7 +785,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -795,7 +795,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -805,7 +805,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -815,7 +815,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -825,7 +825,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -835,7 +835,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -845,7 +845,7 @@
"texture2D": "always",
"texture3D": "always",
"textureCube": "always",
"shaderSample": "check",
"shaderSample": "10_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -855,7 +855,7 @@
"texture2D": "dxgi1_2",
"texture3D": "dxgi1_2",
"textureCube": "dxgi1_2",
"shaderSample": "check",
"shaderSample": "dxgi1_2",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -865,7 +865,7 @@
"texture2D": "dxgi1_2",
"texture3D": "dxgi1_2",
"textureCube": "dxgi1_2",
"shaderSample": "check",
"shaderSample": "dxgi1_2",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -875,7 +875,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "10_0check11_0always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -885,7 +885,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "10_0check11_0always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -895,7 +895,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -905,7 +905,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -915,7 +915,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "10_0check11_0always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -925,7 +925,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -935,7 +935,7 @@
"texture2D": "check",
"texture3D": "check",
"textureCube": "check",
"shaderSample": "check",
"shaderSample": "10_0check11_0always",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -945,7 +945,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -955,7 +955,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "11_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -965,7 +965,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "11_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -975,7 +975,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -985,7 +985,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "11_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -995,7 +995,7 @@
"texture2D": "11_0",
"texture3D": "11_0",
"textureCube": "11_0",
"shaderSample": "check",
"shaderSample": "11_0",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1005,7 +1005,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1015,7 +1015,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1025,7 +1025,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1035,7 +1035,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1045,7 +1045,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1055,7 +1055,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1065,7 +1065,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1075,7 +1075,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1085,7 +1085,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1095,7 +1095,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1105,7 +1105,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "11_1",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1115,7 +1115,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1125,7 +1125,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1135,7 +1135,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1145,7 +1145,7 @@
"texture2D": "11_1",
"texture3D": "never",
"textureCube": "never",
"shaderSample": "check",
"shaderSample": "never",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......@@ -1155,7 +1155,7 @@
"texture2D": "dxgi1_2",
"texture3D": "dxgi1_2",
"textureCube": "dxgi1_2",
"shaderSample": "check",
"shaderSample": "dxgi1_2",
"renderTarget": "check",
"multisampleRT": "check",
"depthStencil": "check"
......
......@@ -49,47 +49,47 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
{
case DXGI_FORMAT_420_OPAQUE:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AI44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AYUV:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B4G4R4A4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G5R5A1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G6R5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_UNORM:
......@@ -104,7 +104,7 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8X8_UNORM:
......@@ -119,287 +119,287 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_BC1_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_SF16:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_TYPELESS:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_UF16:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_TYPELESS:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM_SRGB:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D16_UNORM:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D24_UNORM_S8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT_S8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_G8R8_G8B8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_IA44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV11:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV12:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P010:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P016:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{
static const DXGISupport info(0, F_CUBE, F_2D | F_3D | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_CUBE | F_SAMPLE, F_2D | F_3D | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R11G11B10_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R1_UNORM:
{
static const DXGISupport info(F_2D, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
......@@ -414,37 +414,37 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_R32G32B32A32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_FLOAT:
......@@ -454,22 +454,22 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_R32G32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G8X24_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_FLOAT:
......@@ -484,107 +484,107 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_R32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_B8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_UNKNOWN:
......@@ -594,37 +594,37 @@ const DXGISupport &GetDXGISupport_10_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y210:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y216:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y410:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y416:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_YUY2:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
......@@ -640,47 +640,47 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
{
case DXGI_FORMAT_420_OPAQUE:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AI44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AYUV:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B4G4R4A4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G5R5A1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G6R5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_UNORM:
......@@ -695,7 +695,7 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8X8_UNORM:
......@@ -710,472 +710,472 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_BC1_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_SF16:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_TYPELESS:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_UF16:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_TYPELESS:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM_SRGB:
{
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D16_UNORM:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D24_UNORM_S8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT_S8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_G8R8_G8B8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_IA44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV11:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV12:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P010:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P016:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{
static const DXGISupport info(0, F_CUBE, F_2D | F_3D | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_CUBE | F_SAMPLE, F_2D | F_3D | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R11G11B10_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R1_UNORM:
{
static const DXGISupport info(F_2D, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G8X24_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_B8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_UNKNOWN:
......@@ -1185,37 +1185,37 @@ const DXGISupport &GetDXGISupport_10_1(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y210:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y216:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y410:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y416:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_YUY2:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
......@@ -1231,542 +1231,542 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
{
case DXGI_FORMAT_420_OPAQUE:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AI44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_AYUV:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B4G4R4A4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G5R5A1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B5G6R5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_UNORM:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_SAMPLE, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_SAMPLE, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8X8_TYPELESS:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_SAMPLE, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8X8_UNORM:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_SAMPLE, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_B8G8R8X8_UNORM_SRGB:
{
static const DXGISupport info(0, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_SAMPLE, 0, F_2D | F_3D | F_CUBE | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC1_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC2_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC3_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC4_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC5_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_SF16:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC6H_UF16:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_BC7_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D16_UNORM:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D24_UNORM_S8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_D32_FLOAT_S8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_G8R8_G8B8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_IA44:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV11:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_NV12:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P010:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P016:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_P8:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10A2_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM:
{
static const DXGISupport info(0, F_CUBE, F_2D | F_3D | F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_CUBE | F_SAMPLE, F_2D | F_3D | F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R11G11B10_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16B16A16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16G16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R16_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R1_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32A32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32B32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32G8X24_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_FLOAT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE | F_SAMPLE, F_3D, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R32_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_B8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8G8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_SNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_TYPELESS:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UINT:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE, F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R8_UNORM:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_R9G9B9E5_SHAREDEXP:
{
static const DXGISupport info(F_2D | F_3D | F_CUBE, 0, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_3D | F_CUBE | F_SAMPLE, 0, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_UNKNOWN:
......@@ -1776,37 +1776,37 @@ const DXGISupport &GetDXGISupport_11_0(DXGI_FORMAT dxgiFormat)
}
case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
{
static const DXGISupport info(F_2D | F_CUBE, F_3D, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(F_2D | F_CUBE, F_3D | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y210:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y216:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y410:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_Y416:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
case DXGI_FORMAT_YUY2:
{
static const DXGISupport info(0, F_2D | F_3D | F_CUBE, F_DS | F_MS | F_RT | F_SAMPLE);
static const DXGISupport info(0, F_2D | F_3D | F_CUBE | F_SAMPLE, F_DS | F_MS | F_RT);
return info;
}
......
......@@ -146,7 +146,11 @@ def do_format(format_data):
always_supported = set()
never_supported = set()
optionally_supported = set()
fl_10_1_supported = set()
fl_11_0_supported = set()
fl_11_0_check = set()
fl_10_0_check_10_1_supported = set()
fl_10_0_check_11_0_supported = set()
for json_flag, support in format_support.iteritems():
......@@ -158,6 +162,11 @@ def do_format(format_data):
always_supported.update(d3d_flag)
elif support == 'never':
never_supported.update(d3d_flag)
elif support == '10_0':
# TODO(jmadill): FL 9_3 handling
always_supported.update(d3d_flag)
elif support == '10_1':
fl_10_1_supported.update(d3d_flag)
elif support == '11_0':
fl_11_0_supported.update(d3d_flag)
elif support == '11_1':
......@@ -166,18 +175,35 @@ def do_format(format_data):
elif support == 'dxgi1_2':
# TODO(jmadill): DXGI 1.2 handling.
always_supported.update(d3d_flag)
elif support == '10_0check10_1always':
fl_10_0_check_10_1_supported.update(d3d_flag)
elif support == '10_0check11_0always':
fl_10_0_check_11_0_supported.update(d3d_flag)
elif support == '11_0check':
fl_11_0_check.update(d3d_flag)
else:
print("Data specification error: " + support)
sys.exit(1)
for feature_level in ['10_0', '10_1', '11_0']:
always_for_fl = always_supported
if feature_level == '11_0':
optional_for_fl = optionally_supported
if feature_level == '10_0':
optional_for_fl = fl_10_0_check_10_1_supported.union(optional_for_fl)
optional_for_fl = fl_10_0_check_11_0_supported.union(optional_for_fl)
if feature_level == '10_1':
always_for_fl = fl_10_1_supported.union(always_for_fl)
always_for_fl = fl_10_0_check_10_1_supported.union(always_for_fl)
optional_for_fl = fl_10_0_check_11_0_supported.union(optional_for_fl)
elif feature_level == '11_0':
always_for_fl = fl_10_0_check_10_1_supported.union(always_for_fl)
always_for_fl = fl_10_0_check_11_0_supported.union(always_for_fl)
always_for_fl = fl_10_1_supported.union(always_for_fl)
always_for_fl = fl_11_0_supported.union(always_for_fl)
always = ' | '.join(sorted(always_for_fl))
never = ' | '.join(sorted(never_supported))
optional = ' | '.join(sorted(optionally_supported))
optional = ' | '.join(sorted(optional_for_fl))
if not always: always = '0'
if not never: never = '0'
......
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