Test SPV_KHR_multiview in assembler, disassembler
authorDavid Neto <dneto@google.com>
Fri, 27 Jan 2017 01:12:15 +0000 (20:12 -0500)
committerDavid Neto <dneto@google.com>
Wed, 8 Mar 2017 22:11:22 +0000 (17:11 -0500)
test/text_to_binary.extension_test.cpp

index ad98c9f..93fc0e5 100644 (file)
@@ -227,4 +227,20 @@ INSTANTIATE_TEST_CASE_P(
                                                  SpvBuiltInDeviceIndex})},
             })), );
 
+// SPV_KHR_multiview
+
+INSTANTIATE_TEST_CASE_P(
+    SPV_KHR_multiview, ExtensionRoundTripTest,
+    // We'll get coverage over operand tables by trying the universal
+    // environments, and at least one specific environment.
+    Combine(Values(SPV_ENV_UNIVERSAL_1_0, SPV_ENV_UNIVERSAL_1_1,
+                   SPV_ENV_VULKAN_1_0),
+            ValuesIn(std::vector<AssemblyCase>{
+                {"OpCapability MultiView\n",
+                 MakeInstruction(SpvOpCapability, {SpvCapabilityMultiView})},
+                {"OpDecorate %1 BuiltIn ViewIndex\n",
+                 MakeInstruction(SpvOpDecorate, {1, SpvDecorationBuiltIn,
+                                                 SpvBuiltInViewIndex})},
+            })), );
+
 }  // anonymous namespace