From 42037205a8ea9a0b067f5e38a3ecf6a5c1bf4ae4 Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 26 Jan 2017 20:12:15 -0500 Subject: [PATCH] Test SPV_KHR_multiview in assembler, disassembler --- test/text_to_binary.extension_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/text_to_binary.extension_test.cpp b/test/text_to_binary.extension_test.cpp index ad98c9f..93fc0e5 100644 --- a/test/text_to_binary.extension_test.cpp +++ b/test/text_to_binary.extension_test.cpp @@ -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{ + {"OpCapability MultiView\n", + MakeInstruction(SpvOpCapability, {SpvCapabilityMultiView})}, + {"OpDecorate %1 BuiltIn ViewIndex\n", + MakeInstruction(SpvOpDecorate, {1, SpvDecorationBuiltIn, + SpvBuiltInViewIndex})}, + })), ); + } // anonymous namespace -- 2.7.4